diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-17 07:59:26 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-17 13:58:54 +0900 |
| commit | 080fdbf9e8860c5151aac78081d8a731b09ad545 (patch) | |
| tree | 3f59cd78bf957ae79dfca5fe31d8e4cf772c36ed /src/numeric.c | |
| parent | fbbcee835f972fd2ddc51a83b2e53cfb46555111 (diff) | |
| download | mruby-080fdbf9e8860c5151aac78081d8a731b09ad545.tar.gz mruby-080fdbf9e8860c5151aac78081d8a731b09ad545.zip | |
Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`.
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/numeric.c b/src/numeric.c index fe1a18f04..9a77096b0 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -1357,13 +1357,12 @@ int_to_f(mrb_state *mrb, mrb_value num) */ /* ------------------------------------------------------------------------*/ MRB_API mrb_value -mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x) +mrb_float_to_integer(mrb_state *mrb, mrb_value x) { mrb_int z = 0; if (!mrb_float_p(x)) { mrb_raise(mrb, E_TYPE_ERROR, "non float value"); - z = 0; /* not reached. just suppress warnings. */ } else { mrb_float d = mrb_float(x); |
