summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authortake-cheeze <[email protected]>2019-12-13 04:41:43 +0900
committertake-cheeze <[email protected]>2019-12-13 04:41:43 +0900
commit6af555b394234ba8f7038c9b8352b4467d53a529 (patch)
treeee677b37230376b7cdc722dfccfdc017c217da8a /include
parent9c4c82ed1c6cf21d420dc62185fc42552ad2e924 (diff)
downloadmruby-6af555b394234ba8f7038c9b8352b4467d53a529.tar.gz
mruby-6af555b394234ba8f7038c9b8352b4467d53a529.zip
Align RIStruct data for rational
Diffstat (limited to 'include')
-rw-r--r--include/mruby/istruct.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mruby/istruct.h b/include/mruby/istruct.h
index 45b1fadae..d6b6116a7 100644
--- a/include/mruby/istruct.h
+++ b/include/mruby/istruct.h
@@ -21,7 +21,10 @@ MRB_BEGIN_DECL
struct RIStruct {
MRB_OBJECT_HEADER;
- char inline_data[ISTRUCT_DATA_SIZE];
+ union {
+ intptr_t inline_alignment[3];
+ char inline_data[ISTRUCT_DATA_SIZE];
+ };
};
#define RISTRUCT(obj) ((struct RIStruct*)(mrb_ptr(obj)))