mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use NULL instead of 0 for null pointers.
This commit is contained in:
+2
-2
@@ -904,7 +904,7 @@ fix_mod(mrb_state *mrb, mrb_value x)
|
||||
return mrb_float_value(mrb, NAN);
|
||||
#endif
|
||||
}
|
||||
fixdivmod(mrb, a, b, 0, &mod);
|
||||
fixdivmod(mrb, a, b, NULL, &mod);
|
||||
return mrb_fixnum_value(mod);
|
||||
}
|
||||
#ifdef MRB_WITHOUT_FLOAT
|
||||
@@ -913,7 +913,7 @@ fix_mod(mrb_state *mrb, mrb_value x)
|
||||
else {
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user