From 47db9cb456c343e9a5b253fb67cd8ef174666f11 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Aug 2017 02:44:30 +0000 Subject: enum.c: make constant argument static git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 5a27f55864..4613ab733c 100644 --- a/enum.c +++ b/enum.c @@ -12,6 +12,7 @@ #include "internal.h" #include "ruby/util.h" #include "id.h" +#include "symbol.h" #include @@ -2644,7 +2645,7 @@ enum_zip(int argc, VALUE *argv, VALUE obj) argv[i] = ary; } if (!allary) { - const VALUE sym_each = ID2SYM(id_each); + static const VALUE sym_each = STATIC_ID2SYM(id_each); CONST_ID(conv, "to_enum"); for (i=0; i