Commit f48fe450 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1060 from cremno/nan_boxing-mrb_bool_value-fails

NaN boxing: fix compilation
parents fd66a4df c09c098b
...@@ -280,14 +280,7 @@ mrb_bool_value(mrb_bool boolean) ...@@ -280,14 +280,7 @@ mrb_bool_value(mrb_bool boolean)
{ {
mrb_value v; mrb_value v;
v.value.i = 1; MRB_SET_VALUE(v, boolean ? MRB_TT_TRUE : MRB_TT_FALSE, value.i, 1);
if (boolean) {
v.tt = MRB_TT_TRUE;
}
else {
v.tt = MRB_TT_FALSE;
}
return v; 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