summaryrefslogtreecommitdiff
path: root/template/limits.c.tmpl
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-10-07 19:20:08 +0900
committerNobuyoshi Nakada <[email protected]>2024-10-07 19:20:08 +0900
commit67591b545ce2b4c15bcf9ef813576954d7e2bf4f (patch)
tree228f7da0376d76ac712e2e61eaae2a025585cad9 /template/limits.c.tmpl
parentdbb1abacf0538db61496cd25d9616dfa18327cd9 (diff)
Make rbconfig/sizeof keys US-ASCII
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11815
Diffstat (limited to 'template/limits.c.tmpl')
-rw-r--r--template/limits.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/limits.c.tmpl b/template/limits.c.tmpl
index a46cf5ed63..f7867ded9a 100644
--- a/template/limits.c.tmpl
+++ b/template/limits.c.tmpl
@@ -82,7 +82,7 @@ Init_limits(void)
#define MAX2NUM(name) ULONG2NUM(name ## _MAX)
#define MIN2NUM(name) LONG2NUM(name ## _MIN)
#endif
-#define DEFINE(k, v) rb_hash_aset(h, rb_str_new_lit(#k), v)
+#define DEFINE(k, v) rb_hash_aset(h, rb_usascii_str_new_lit(#k), v)
% limits.each do |type|
#ifdef <%= type %>_MAX