mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c (flo_mod): use NULL instead of 0
In C, we don't use 0 as NULL representation.
This commit is contained in:
+1
-1
@@ -532,7 +532,7 @@ flo_mod(mrb_state *mrb, mrb_value x)
|
||||
mrb_value y = mrb_get_arg1(mrb);
|
||||
mrb_float mod;
|
||||
|
||||
flodivmod(mrb, mrb_float(x), mrb_as_float(mrb, y), 0, &mod);
|
||||
flodivmod(mrb, mrb_float(x), mrb_as_float(mrb, y), NULL, &mod);
|
||||
return mrb_float_value(mrb, mod);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user