diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-16 22:49:42 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-16 22:49:42 +0900 |
| commit | 3bb419aeab67ed1802d627144be6628a6e4dc118 (patch) | |
| tree | 951582eee54b5b3af0fc753c4e05e2e4b08e4f53 /include | |
| parent | 2609f0a2b3c4bdcb9160cce778501d7402e5dfbf (diff) | |
| parent | 8a019106c0e57715377f991a510b5f0bca07d464 (diff) | |
| download | mruby-3bb419aeab67ed1802d627144be6628a6e4dc118.tar.gz mruby-3bb419aeab67ed1802d627144be6628a6e4dc118.zip | |
Merge pull request #5137 from shuujii/use-uintptr_t-instead-of-unsigned-long-in-include-mruby-boxing_word.h
Use `uintptr_t` instead of `unsigned long` in `include/mruby/boxing_word.h`
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/boxing_word.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/boxing_word.h b/include/mruby/boxing_word.h index 120c4f476..c0005dffe 100644 --- a/include/mruby/boxing_word.h +++ b/include/mruby/boxing_word.h @@ -131,7 +131,7 @@ mrb_integer_func(mrb_value o) { #else #define mrb_symbol(o) BOXWORD_SHIFT_VALUE(o, SYMBOL, mrb_sym) #endif -#define mrb_bool(o) (((o).w & ~(unsigned long)MRB_Qfalse) != 0) +#define mrb_bool(o) (((o).w & ~(uintptr_t)MRB_Qfalse) != 0) #define mrb_fixnum_p(o) BOXWORD_SHIFT_VALUE_P(o, FIXNUM) #define mrb_integer_p(o) (BOXWORD_SHIFT_VALUE_P(o, FIXNUM)||BOXWORD_OBJ_TYPE_P(o, INTEGER)) |
