diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-12 09:52:16 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-12 09:52:16 +0900 |
| commit | 578589141fe46be7d7959c0b2af1f64887bfbe9a (patch) | |
| tree | 31883b0da8f6902874a1569c53f7df0495bcdb9f | |
| parent | 3a27e9189aba3336a563f1d29d95ab53a034a6f5 (diff) | |
| download | mruby-578589141fe46be7d7959c0b2af1f64887bfbe9a.tar.gz mruby-578589141fe46be7d7959c0b2af1f64887bfbe9a.zip | |
use CHAR_BIT instead of bare 8
| -rw-r--r-- | include/mruby/value.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
