numeric.c (flo_mod): use NULL instead of 0

In C, we don't use 0 as NULL representation.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-12 00:05:26 +09:00
parent 4f9caea891
commit ea0e8f7ea4
+1 -1
View File
@@ -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