[ruby-cvs:67200] naruse:r60019 (trunk): Fix overflow detection for LLP64 arch [Bug #13748]

naruse at ruby-lang.org naruse at ruby-lang.org
Mon Sep 25 17:19:10 JST 2017

naruse	2017-09-25 17:19:10 +0900 (Mon, 25 Sep 2017)

  New Revision: 60019


    Fix overflow detection for LLP64 arch [Bug #13748]
    FIXNUMs are expected to fit into a long type, but the test is about a
    VALUE type. Since long is < than VALUE on LLP64, the overflow is not
    detected. As a result "2**31" evaluates to "-2147483648" on Windows with
    patched by Lars Kanis <lars at greiz-reinsdorf.de>

  Modified files:

More information about the ruby-cvs mailing list