[macruby-changes] [817] MacRuby/trunk/include/ruby/defines.h
source_changes at macosforge.org
source_changes at macosforge.org
Sat Feb 28 12:31:47 PST 2009
Revision: 817
http://trac.macosforge.org/projects/ruby/changeset/817
Author: lsansonetti at apple.com
Date: 2009-02-28 12:31:47 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
fixed a serious bug in the GC_WB() macro that would evaluate the second parameter twice
Modified Paths:
--------------
MacRuby/trunk/include/ruby/defines.h
Modified: MacRuby/trunk/include/ruby/defines.h
===================================================================
--- MacRuby/trunk/include/ruby/defines.h 2009-02-27 12:54:37 UTC (rev 816)
+++ MacRuby/trunk/include/ruby/defines.h 2009-02-28 20:31:47 UTC (rev 817)
@@ -302,7 +302,7 @@
*(void **)dst = nv; \
} \
else { \
- rb_objc_wb((void *)dst, (void *)newval); \
+ rb_objc_wb((void *)dst, (void *)nv); \
} \
} \
while (0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090228/ed966b69/attachment.html>
More information about the macruby-changes
mailing list