Commit e65d4938 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from...

'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from @crimsonwoods; close #216
parent b2d0f22d
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include "mruby/khash.h" #include "mruby/khash.h"
KHASH_MAP_INIT_INT(mt, struct RProc*); KHASH_INIT(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal)
KHASH_MAP_INIT_INT(iv, mrb_value); KHASH_INIT(iv, mrb_sym, mrb_value, 1, kh_int_hash_func, kh_int_hash_equal)
typedef struct fc_result { typedef struct fc_result {
mrb_sym name; mrb_sym name;
......
...@@ -39,8 +39,8 @@ typedef enum { ...@@ -39,8 +39,8 @@ typedef enum {
#include "regint.h" #include "regint.h"
#endif #endif
KHASH_MAP_INIT_INT(mt, struct RProc*); KHASH_INIT(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal)
KHASH_MAP_INIT_INT(iv, mrb_value); KHASH_INIT(iv, mrb_sym, mrb_value, 1, kh_int_hash_func, kh_int_hash_equal)
#ifndef FALSE #ifndef FALSE
#define FALSE 0 #define FALSE 0
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "st.h" #include "st.h"
#endif #endif
KHASH_MAP_INIT_INT(iv, mrb_value); KHASH_INIT(iv, mrb_sym, mrb_value, 1, kh_int_hash_func, kh_int_hash_equal)
#ifndef FALSE #ifndef FALSE
#define FALSE 0 #define FALSE 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment