Revision
512
Author
lsansonetti@apple.com
Date
2008-08-28 01:02:31 -0700 (Thu, 28 Aug 2008)

Log Message

reverting a change introduced by the last commit

Modified Paths

Diff

Modified: MacRuby/trunk/objc.m (511 => 512)


--- MacRuby/trunk/objc.m	2008-08-28 06:02:21 UTC (rev 511)
+++ MacRuby/trunk/objc.m	2008-08-28 08:02:31 UTC (rev 512)
@@ -2067,11 +2067,10 @@
 	    (bs_element_struct_field_t *)&bs_struct->fields[i];
 
 	if (strcmp(ivar_id_str, bs_field->name) == 0) {
-	    VALUE val, *pval;
+	    VALUE *pval;
 
 	    pval = &((VALUE *)(data + bs_boxed->ffi_type->size))[i];
 	    if (*pval == 0) {
-		pval = &val;
 		rb_objc_ocval_to_rbval(data + pos, bs_field->type, pval);
 	    }
 	    return *pval;