[ruby-cvs:50364] mame:r43222 (trunk): * numeric.c (fix_aref): avoid a possible undefined behavior.

mame at ruby-lang.org mame at ruby-lang.org
Thu Oct 10 00:08:42 JST 2013


mame	2013-10-10 00:08:41 +0900 (Thu, 10 Oct 2013)

  New Revision: 43222

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43222

  Log:
    * numeric.c (fix_aref): avoid a possible undefined behavior.
      1L << 63 on 64-bit platform is undefined, at least, according to
      ISO/IEC 9899 (C99) 6.5.7.

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c


More information about the ruby-cvs mailing list