Revision
817
Author
lsansonetti@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

Diff

Modified: MacRuby/trunk/include/ruby/defines.h (816 => 817)


--- 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)