fixed the dispatch of nil as an opt block (obj.foo(&nil))
--- MacRuby/branches/experimental/roxor.cpp 2009-03-23 15:25:14 UTC (rev 1110)
+++ MacRuby/branches/experimental/roxor.cpp 2009-03-23 19:06:25 UTC (rev 1111)
@@ -4926,6 +4926,9 @@
void *
rb_vm_get_block(VALUE obj)
{
+ if (obj == Qnil) {
+ return NULL;
+ }
VALUE proc = rb_check_convert_type(obj, T_DATA, "Proc", "to_proc");
if (NIL_P(proc)) {
rb_raise(rb_eTypeError,