summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorcrimsonwoods <[email protected]>2013-03-18 00:16:13 +0900
committercrimsonwoods <[email protected]>2013-03-18 00:16:13 +0900
commit3678d2545c2b90018a6414d1d694709da0b40d31 (patch)
tree295291ceee8a862e35fc231593848626e762cead /include
parent7872bee70013ed0763942f6097ca0a61000fc92a (diff)
downloadmruby-3678d2545c2b90018a6414d1d694709da0b40d31.tar.gz
mruby-3678d2545c2b90018a6414d1d694709da0b40d31.zip
fix the type of bit field variable.
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h4
1 files changed, 2 insertions, 2 deletions
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