• 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ãoc16bb3fee3ba0dfcd74b82fd2167c3fdd0593ba9 (tree)
Hora2014-07-04 21:52:51
AutorYukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Mensagem de Log

Merge pull request #2446 from take-cheeze/fix_mrb_flo_to_fixnum

Fix type checking in mrb_flo_to_fixnum.

Mudança Sumário

Diff

--- a/src/numeric.c
+++ b/src/numeric.c
@@ -1085,7 +1085,7 @@ mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x)
10851085 {
10861086 mrb_int z;
10871087
1088- if (mrb_float_p(x)) {
1088+ if (!mrb_float_p(x)) {
10891089 mrb_raise(mrb, E_TYPE_ERROR, "non float value");
10901090 z = 0; /* not reached. just suppress warnings. */
10911091 }