summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-01 09:44:19 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-01 09:44:19 +0900
commit364e6b5a50b9941856ef971dc6ca2d7cf2e4212a (patch)
tree98d77bd8bd7807f52cfc6f45366387a9dfa658eb /src
parent8180fee1808c56048b9fa18a8dd16014e694e48e (diff)
downloadmruby-364e6b5a50b9941856ef971dc6ca2d7cf2e4212a.tar.gz
mruby-364e6b5a50b9941856ef971dc6ca2d7cf2e4212a.zip
symbol table key should be mrb_sym, not int32_t
Diffstat (limited to 'src')
-rw-r--r--src/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c
index 89e81af0e..aa5b659fa 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -17,7 +17,7 @@
#include <stdio.h>
/* ------------------------------------------------------ */
-KHASH_MAP_INIT_INT(s2n, const char*);
+KHASH_INIT(s2n, mrb_sym, const char*, 1, kh_int_hash_func, kh_int_hash_equal)
KHASH_MAP_INIT_STR(n2s, mrb_sym);
/* ------------------------------------------------------ */
mrb_sym