Commit d63e45a0 authored by Xuejie "Rafael" Xiao's avatar Xuejie "Rafael" Xiao

Use setter macro instead of directly setting values

parent 23e69edd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment