Align RIStruct data for rational
MODIFY
include/mruby/istruct.h
include/mruby/istruct.h
@@ -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)

Align RIStruct data for rational