diff options
| author | dearblue <[email protected]> | 2020-11-08 14:15:19 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2020-11-08 14:15:19 +0900 |
| commit | e993b83c509912f2d90ffece32c969a642f5df01 (patch) | |
| tree | 291d804bda31ea1ee8ed709250fe04a12b4feca2 /include | |
| parent | e2829bef0de52965e90fa2e92d732bfa1f1b2408 (diff) | |
| download | mruby-e993b83c509912f2d90ffece32c969a642f5df01.tar.gz mruby-e993b83c509912f2d90ffece32c969a642f5df01.zip | |
Fixed build NaN boxing with 32-bit CPU mode
`SET_CPTR_VALUE()` requires the `p` field on 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 ) }; }; |
