'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from @crimsonwoods; close #216

This commit is contained in:
Yukihiro Matsumoto
2012-06-02 17:25:18 +09:00
parent b2d0f22dee
commit e65d4938f3
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -39,8 +39,8 @@ typedef enum {
#include "regint.h"
#endif
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)
#ifndef FALSE
#define FALSE 0
+1 -1
View File
@@ -19,7 +19,7 @@
#include "st.h"
#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
#define FALSE 0