mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from @crimsonwoods; close #216
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user