route divisions by zero through the dispatcher (note: currently only handles the immediate/immediate case)
--- MacRuby/branches/experimental/roxor.cpp 2009-03-27 01:19:25 UTC (rev 1194)
+++ MacRuby/branches/experimental/roxor.cpp 2009-03-27 01:29:08 UTC (rev 1195)
@@ -1419,6 +1419,9 @@
res = leftLong - rightLong;
}
else if (sel == selDIV) {
+ if (rightLong == 0) {
+ return NULL;
+ }
res = leftLong / rightLong;
}
else if (sel == selMULT) {