Align RIStruct data for rational
@@ -21,8 +21,11 @@ MRB_BEGIN_DECL
struct RIStruct {
MRB_OBJECT_HEADER;
+ union {
+ intptr_t inline_alignment[3];
char inline_data[ISTRUCT_DATA_SIZE];
};
+};
#define RISTRUCT(obj) ((struct RIStruct*)(mrb_ptr(obj)))
#define ISTRUCT_PTR(obj) (RISTRUCT(obj)->inline_data)
