Use `NULL` instead of `0` for null pointers.

parent 5900b29f
...@@ -904,7 +904,7 @@ fix_mod(mrb_state *mrb, mrb_value x) ...@@ -904,7 +904,7 @@ fix_mod(mrb_state *mrb, mrb_value x)
return mrb_float_value(mrb, NAN); return mrb_float_value(mrb, NAN);
#endif #endif
} }
fixdivmod(mrb, a, b, 0, &mod); fixdivmod(mrb, a, b, NULL, &mod);
return mrb_fixnum_value(mod); return mrb_fixnum_value(mod);
} }
#ifdef MRB_WITHOUT_FLOAT #ifdef MRB_WITHOUT_FLOAT
...@@ -913,7 +913,7 @@ fix_mod(mrb_state *mrb, mrb_value x) ...@@ -913,7 +913,7 @@ fix_mod(mrb_state *mrb, mrb_value x)
else { else {
mrb_float mod; mrb_float mod;
flodivmod(mrb, (mrb_float)a, mrb_to_flo(mrb, y), 0, &mod); flodivmod(mrb, (mrb_float)a, mrb_to_flo(mrb, y), NULL, &mod);
return mrb_float_value(mrb, mod); return mrb_float_value(mrb, mod);
} }
#endif #endif
......
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