From 080fdbf9e8860c5151aac78081d8a731b09ad545 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 17 May 2021 07:59:26 +0900 Subject: Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`. --- src/numeric.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/numeric.c') 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); -- cgit v1.2.3