From b1d0a3d3aab60b8bd818712d5fd82bbfcd6bbbd9 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 6 Mar 2023 11:54:22 +0900 Subject: [PATCH] etc.c (mrb_float_id): define the function only when necessary --- src/etc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc.c b/src/etc.c index 834192238..0c2662456 100644 --- a/src/etc.c +++ b/src/etc.c @@ -71,7 +71,7 @@ mrb_obj_to_sym(mrb_state *mrb, mrb_value name) return 0; /* not reached */ } -#ifndef MRB_NO_FLOAT +#if !defined(MRB_NO_FLOAT) && !defined(MRB_NAN_BOXING) static mrb_int mrb_float_id(mrb_float f) {