diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-02-17 22:13:22 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-17 22:13:22 +0900 |
| commit | 3e0d29b7bed34a961ba991f581528078dedbe934 (patch) | |
| tree | 2014d149ee3ddd5ef1299e2fc11353ce1c1a450f /include | |
| parent | a3e8b750ef5a7515e2a19b947c9b14261fff1e7a (diff) | |
| parent | 5067a5cd584c4457934872d50cfb33735d55241d (diff) | |
| download | mruby-3e0d29b7bed34a961ba991f581528078dedbe934.tar.gz mruby-3e0d29b7bed34a961ba991f581528078dedbe934.zip | |
Merge pull request #4279 from dearblue/fix-inline-packed-symbols
Fix destroyed "inline packed symbols" on 32 bit mode with `MRB_WORD_BOXING`
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h index f988826ca..1ed20858f 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -160,6 +160,10 @@ typedef void mrb_value; #ifndef mrb_bool #define mrb_bool(o) (mrb_type(o) != MRB_TT_FALSE) #endif +#if !defined(MRB_SYMBOL_BITSIZE) +#define MRB_SYMBOL_BITSIZE (sizeof(mrb_sym) * CHAR_BIT) +#define MRB_SYMBOL_MAX UINT32_MAX +#endif #ifndef MRB_WITHOUT_FLOAT #define mrb_float_p(o) (mrb_type(o) == MRB_TT_FLOAT) #endif |
