summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-09 07:25:44 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-09 07:25:44 (GMT)
commitd3bce791837b0384f8b68212334cc172b4423754 (patch)
tree0f47ec888de2178d6b450a812d3055a6d96ff55c /version.c
parentc5e8342d4f6e0cec730497ead5c67226d212a104 (diff)
version.c: use str_new_static
* version.c (MKSTR): always make from static strings for sizeof operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/version.c b/version.c
index f3c687d..e8dd4c7 100644
--- a/version.c
+++ b/version.c
@@ -18,7 +18,7 @@
#endif
#define PRINT(type) puts(ruby_##type)
-#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
+#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1))
const int ruby_api_version[] = {
RUBY_API_VERSION_MAJOR,