diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-08 14:38:18 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-08 14:38:18 +0900 |
| commit | 9288805435036c5f69d1b0873c5f3e689fc02914 (patch) | |
| tree | 291d804bda31ea1ee8ed709250fe04a12b4feca2 /include | |
| parent | e2829bef0de52965e90fa2e92d732bfa1f1b2408 (diff) | |
| parent | e993b83c509912f2d90ffece32c969a642f5df01 (diff) | |
| download | mruby-9288805435036c5f69d1b0873c5f3e689fc02914.tar.gz mruby-9288805435036c5f69d1b0873c5f3e689fc02914.zip | |
Merge pull request #5117 from dearblue/nan-32bit
Fixed build NaN boxing with 32-bit CPU mode
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/boxing_nan.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/boxing_nan.h b/include/mruby/boxing_nan.h index 3a99aeca6..e68982977 100644 --- a/include/mruby/boxing_nan.h +++ b/include/mruby/boxing_nan.h @@ -41,7 +41,11 @@ union mrb_value_ { struct { MRB_ENDIAN_LOHI( uint32_t ttt; +#ifdef MRB_64BIT ,uint32_t i; +#else + ,union { uint32_t i; void *p; }; +#endif ) }; }; |
