From 578589141fe46be7d7959c0b2af1f64887bfbe9a Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 12 Aug 2013 09:52:16 +0900 Subject: use CHAR_BIT instead of bare 8 --- 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 c631e4764..8c1ffa42c 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -234,11 +234,11 @@ typedef union mrb_value { void *p; struct { unsigned int i_flag : MRB_FIXNUM_SHIFT; - mrb_int i : (sizeof(mrb_int) * 8 - MRB_FIXNUM_SHIFT); + mrb_int i : (sizeof(mrb_int) * CHAR_BIT - MRB_FIXNUM_SHIFT); }; struct { unsigned int sym_flag : MRB_SPECIAL_SHIFT; - int sym : (sizeof(mrb_sym) * 8); + int sym : (sizeof(mrb_sym) * CHAR_BIT); }; struct RBasic *bp; struct RFloat *fp; -- cgit v1.2.3