• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revisão7090b5f07ae735e97d8df6a02d0fd8efd2aad965 (tree)
Hora2015-11-08 21:38:47
AutorYukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Mensagem de Log

Merge pull request #3006 from cremno/remove-ifdef-mrb_fixnum_shift

remove ifdef as MRB_FIXNUM_SHIFT is always defined

Mudança Sumário

Diff

--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -35,11 +35,7 @@ mrb_value mrb_num_div(mrb_state *mrb, mrb_value x, mrb_value y);
3535 #define MRB_UINT_MAKE(n) MRB_UINT_MAKE2(n)
3636 #define mrb_uint MRB_UINT_MAKE(MRB_INT_BIT)
3737
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))
4339
4440 /* Idea from Potion: https://github.com/perl11/potion (MIT) */
4541 #if (defined(__clang__) && ((__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ >= 4))) \