summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-02 17:25:18 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-02 17:25:18 +0900
commite65d4938f373132f2ab5c75533e0bd18e188f9bc (patch)
tree904117152c9090d909c3dd5365dfa23875784be6 /src/class.c
parentb2d0f22dee87651bca4e16e287cab61dc303db19 (diff)
downloadmruby-e65d4938f373132f2ab5c75533e0bd18e188f9bc.tar.gz
mruby-e65d4938f373132f2ab5c75533e0bd18e188f9bc.zip
'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from @crimsonwoods; close #216
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class.c b/src/class.c
index b13ab2288..9424e8d84 100644
--- a/src/class.c
+++ b/src/class.c
@@ -17,8 +17,8 @@
#include "mruby/khash.h"
-KHASH_MAP_INIT_INT(mt, struct RProc*);
-KHASH_MAP_INIT_INT(iv, mrb_value);
+KHASH_INIT(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal)
+KHASH_INIT(iv, mrb_sym, mrb_value, 1, kh_int_hash_func, kh_int_hash_equal)
typedef struct fc_result {
mrb_sym name;