Use setter macro instead of directly setting values

This commit is contained in:
Xuejie "Rafael" Xiao
2015-01-26 10:52:06 +08:00
parent 23e69edd2d
commit d63e45a014
+2 -2
View File
@@ -1920,7 +1920,7 @@ RETRY_TRY_BLOCK:
SET_FLOAT_VALUE(mrb, regs[a], (mrb_float)x + (mrb_float)y);
break;
}
mrb_fixnum(regs[a]) = z;
SET_INT_VALUE(regs[a], z);
}
break;
case MRB_TT_FLOAT:
@@ -1958,7 +1958,7 @@ RETRY_TRY_BLOCK:
SET_FLOAT_VALUE(mrb, regs_a[0], (mrb_float)x - (mrb_float)y);
}
else {
mrb_fixnum(regs_a[0]) = z;
SET_INT_VALUE(regs_a[0], z);
}
}
break;