mrubyを超漢字で動作させる
Revisão | 7090b5f07ae735e97d8df6a02d0fd8efd2aad965 (tree) |
---|---|
Hora | 2015-11-08 21:38:47 |
Autor | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
Merge pull request #3006 from cremno/remove-ifdef-mrb_fixnum_shift
remove ifdef as MRB_FIXNUM_SHIFT is always defined
@@ -35,11 +35,7 @@ mrb_value mrb_num_div(mrb_state *mrb, mrb_value x, mrb_value y); | ||
35 | 35 | #define MRB_UINT_MAKE(n) MRB_UINT_MAKE2(n) |
36 | 36 | #define mrb_uint MRB_UINT_MAKE(MRB_INT_BIT) |
37 | 37 | |
38 | -#ifdef MRB_WORD_BOXING | |
39 | -# define MRB_INT_OVERFLOW_MASK ((mrb_uint)1 << (MRB_INT_BIT - 1 - MRB_FIXNUM_SHIFT)) | |
40 | -#else | |
41 | -# define MRB_INT_OVERFLOW_MASK ((mrb_uint)1 << (MRB_INT_BIT - 1)) | |
42 | -#endif | |
38 | +#define MRB_INT_OVERFLOW_MASK ((mrb_uint)1 << (MRB_INT_BIT - 1 - MRB_FIXNUM_SHIFT)) | |
43 | 39 | |
44 | 40 | /* Idea from Potion: https://github.com/perl11/potion (MIT) */ |
45 | 41 | #if (defined(__clang__) && ((__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ >= 4))) \ |