diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-15 14:30:17 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-15 14:30:17 +0900 |
| commit | ddd1bfda02141d9e53dbc95fe46de9eb385f8615 (patch) | |
| tree | 33b50e598003ffaa16fa1eb89979573e769246c4 /include | |
| parent | fc75cff14e7d43defb0c99f5bc9d657c0121c4b0 (diff) | |
| download | mruby-ddd1bfda02141d9e53dbc95fe46de9eb385f8615.tar.gz mruby-ddd1bfda02141d9e53dbc95fe46de9eb385f8615.zip | |
type of mrb_type() should be enum mrb_vtype when MRB_NAN_BOXING is on
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h index ccc30357b..5df5b6a24 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -158,7 +158,7 @@ typedef struct mrb_value { * In order to get enough bit size to save TT, all pointers are shifted 2 bits * in the right direction. */ -#define mrb_tt(o) (((o).value.ttt & 0xfc000)>>14) +#define mrb_tt(o) ((enum mrb_vtype)(((o).value.ttt & 0xfc000)>>14)) #define mrb_mktt(tt) (0xfff00000|((tt)<<14)) #define mrb_type(o) ((uint32_t)0xfff00000 < (o).value.ttt ? mrb_tt(o) : MRB_TT_FLOAT) #define mrb_ptr(o) ((void*)((((uintptr_t)0x3fffffffffff)&((uintptr_t)((o).value.p)))<<2)) |
