From e4262e991d50a211572da66c7fafbb3cba9e6651 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 6 Apr 2017 02:33:40 +0000 Subject: Freeze RbConfig::SIZEOF and RbConfig::LIMITS git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/limits.c.tmpl | 1 + template/sizes.c.tmpl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/limits.c.tmpl b/template/limits.c.tmpl index 6b7610a030..de35354829 100644 --- a/template/limits.c.tmpl +++ b/template/limits.c.tmpl @@ -93,4 +93,5 @@ Init_limits(void) #undef DEFINE #undef MIN2NUM #undef MAX2NUM + OBJ_FREEZE(h); } diff --git a/template/sizes.c.tmpl b/template/sizes.c.tmpl index 75c1ff22c9..0fc8fe8218 100644 --- a/template/sizes.c.tmpl +++ b/template/sizes.c.tmpl @@ -47,7 +47,8 @@ Init_sizeof(void) DEFINE(<%= type %>, <%= type.tr_cpp %>); #endif % end + OBJ_FREEZE(s); #undef DEFINE - Init_limits(); + Init_limits(); } -- cgit v1.2.3