Commit c09c098b authored by Cremno's avatar Cremno

fixed NaN boxing compilation

Use MRB_SET_VALUE instead of directly accessing members of mrb_value
which are different if NaN boxing is enabled.
parent e69a13a2
......@@ -280,14 +280,7 @@ mrb_bool_value(mrb_bool boolean)
{
mrb_value v;
v.value.i = 1;
if (boolean) {
v.tt = MRB_TT_TRUE;
}
else {
v.tt = MRB_TT_FALSE;
}
MRB_SET_VALUE(v, boolean ? MRB_TT_TRUE : MRB_TT_FALSE, value.i, 1);
return v;
}
......
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