summaryrefslogtreecommitdiff
path: root/ext/date/date_strptime.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-25 13:17:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-25 13:17:35 +0000
commitd1ea2f9d8f10ca728d178de92a26668c64f4aff8 (patch)
tree0f884209554c752f8c16b6bf509dd8ac5ced7645 /ext/date/date_strptime.c
parenta32e4169e19bf648aa368bcd2c612b7ffb04316d (diff)
date_parse.c, date_strptime.c: ensure symbols static all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_strptime.c')
-rw-r--r--ext/date/date_strptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
index 4f93219317..7bdd5e58a5 100644
--- a/ext/date/date_strptime.c
+++ b/ext/date/date_strptime.c
@@ -113,9 +113,9 @@ read_digits(const char *s, VALUE *n, size_t width)
}
}
-#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
-#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
-#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
+#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k"")), v)
+#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k"")))
+#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k"")))
#define fail() \
{ \