From 5044832fec85514b69c0fcb3524efd2e3e435087 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 2 Sep 2022 22:11:12 +0900 Subject: [PATCH] `w_bigfixnum` is used only for large FIXNUM --- marshal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/marshal.c b/marshal.c index 30d1927cce..9e2f1c4381 100644 --- a/marshal.c +++ b/marshal.c @@ -756,6 +756,7 @@ w_objivar(VALUE obj, struct dump_call_arg *arg) w_ivar_each(obj, num, arg); } +#if SIZEOF_LONG > 4 // Optimized dump for fixnum larger than 31-bits static void w_bigfixnum(VALUE obj, struct dump_arg *arg) @@ -803,6 +804,7 @@ w_bigfixnum(VALUE obj, struct dump_arg *arg) RUBY_ASSERT(num == 0); } +#endif static void w_remember(VALUE obj, struct dump_arg *arg)