Fixed build NaN boxing with 32-bit CPU mode

`SET_CPTR_VALUE()` requires the `p` field on 32-bit CPU mode.
This commit is contained in:
dearblue
2020-11-08 14:15:19 +09:00
parent e2829bef0d
commit e993b83c50
+4
View File
@@ -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
)
};
};