fix the type of bit field variable.

if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
This commit is contained in:
crimsonwoods
2013-03-18 00:16:13 +09:00
parent 7872bee700
commit 3678d2545c
+2 -2
View File
@@ -158,8 +158,8 @@ mrb_float_value(mrb_float f)
#define MRB_OBJECT_HEADER \
enum mrb_vtype tt:8;\
unsigned int color:3;\
unsigned int flags:21;\
uint32_t color:3;\
uint32_t flags:21;\
struct RClass *c;\
struct RBasic *gcnext