From 3678d2545c2b90018a6414d1d694709da0b40d31 Mon Sep 17 00:00:00 2001 From: crimsonwoods Date: Mon, 18 Mar 2013 00:16:13 +0900 Subject: fix the type of bit field variable. if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large. --- include/mruby/value.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mruby/value.h b/include/mruby/value.h index 7f31b0982..eae08855d 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -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 -- cgit v1.2.3