[macruby-changes] [4767] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 15:01:40 PDT 2010
Revision: 4767
http://trac.macosforge.org/projects/ruby/changeset/4767
Author: lsansonetti at apple.com
Date: 2010-10-08 15:01:39 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
cast the block literal as void* to conform to the type we declared earlier
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2010-10-08 11:45:45 UTC (rev 4766)
+++ MacRuby/trunk/compiler.cpp 2010-10-08 22:01:39 UTC (rev 4767)
@@ -5489,7 +5489,7 @@
funcptr
};
CallInst::Create(initBlockFunc, args, args + 2, "", bb);
- return block_lit;
+ return new BitCastInst(block_lit, PtrTy, "", bb);
}
break;
@@ -5499,7 +5499,6 @@
if (bs_boxed != NULL) {
return compile_get_opaque_data(val, bs_boxed, slot);
}
-
return compile_get_cptr(val, type, slot);
}
break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/cb513034/attachment.html>
More information about the macruby-changes
mailing list