aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 5bae5d392d..d2b9f4c8b3 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -768,7 +768,7 @@ VALUE rb_id2str(ID);
{ \
static ID rb_intern_id_cache; \
if (!rb_intern_id_cache) \
- rb_intern_id_cache = (rb_intern)(str); \
+ rb_intern_id_cache = rb_intern2(str, strlen(str)); \
result rb_intern_id_cache; \
}
#define CONST_ID(var, str) \