aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-06 02:33:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-06 02:33:40 +0000
commit475572548f0144802213bd39c24ff16b0e57f62b (patch)
treedc80a7589249c9d5f33dac30144f1cc6c70a1fe7 /template
parent10a9f14d00add45b3f7b3b17f21ba87b6f187f6d (diff)
downloadruby-475572548f0144802213bd39c24ff16b0e57f62b.tar.gz
Freeze RbConfig::SIZEOF and RbConfig::LIMITS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/limits.c.tmpl1
-rw-r--r--template/sizes.c.tmpl3
2 files changed, 3 insertions, 1 deletions
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();
}