diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-11 02:44:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-11 02:44:30 +0000 |
commit | 47db9cb456c343e9a5b253fb67cd8ef174666f11 (patch) | |
tree | 9efdd032e9835a17805c1ff03d7fa386db3466eb /enum.c | |
parent | d96eba12c24c71fb75a41ff4fcb7ca7ee1e46f91 (diff) |
enum.c: make constant argument static
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,6 +12,7 @@ #include "internal.h" #include "ruby/util.h" #include "id.h" +#include "symbol.h" #include <assert.h> @@ -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<argc; i++) { if (!rb_respond_to(argv[i], id_each)) { |