diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-07-31 00:54:39 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-07-31 00:54:39 +0900 |
| commit | 8175d92b4bd8c641ac45fa10417e60da930164dd (patch) | |
| tree | 76e6b4be264de2aa6a28c49d9c536951a4e671d0 /src/numeric.c | |
| parent | 5900b29fb47f443287228f0b37bb60403758120c (diff) | |
| download | mruby-8175d92b4bd8c641ac45fa10417e60da930164dd.tar.gz mruby-8175d92b4bd8c641ac45fa10417e60da930164dd.zip | |
Use `NULL` instead of `0` for null pointers.
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/numeric.c b/src/numeric.c index db851b06a..744426c67 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -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 |
