don't assert anything regarding the special code, let rb_reg_nth_match() do the boundaries check
--- MacRuby/trunk/vm.cpp 2010-01-07 21:03:17 UTC (rev 3201)
+++ MacRuby/trunk/vm.cpp 2010-01-07 21:21:10 UTC (rev 3202)
@@ -3248,8 +3248,8 @@
break;
default:
{
- int index = (int)code;
- assert(index > 0 && index < 10);
+ const int index = (int)code;
+ // Boundaries check is done in rb_reg_nth_match().
val = rb_reg_nth_match(index, backref);
}
break;