From c8dd501553462e1c35e7a8462eb7fbba567395c9 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 12 Jul 2007 09:52:48 +0000 Subject: * range.c (range_max): use FIX2LONG instead of FIX2INT to avoid RangeError by ((-0x80000001)...(-0x80000001)).max on LP64. * insns.def (opt_plus): use FIX2LONG instead of FIX2INT to avoid RangeError by 0x3fffffffffffffff+1 on LP64. * insns.def (opt_succ): don't use 0x80000000 which assumes 32bit VALUE. use FIX2LONG instead of FIX2INT. [ruby-dev:31190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index b874557d9..44cea7dca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Thu Jul 12 18:42:18 2007 Tanaka Akira + + * range.c (range_max): use FIX2LONG instead of FIX2INT to avoid + RangeError by ((-0x80000001)...(-0x80000001)).max on LP64. + + * insns.def (opt_plus): use FIX2LONG instead of FIX2INT to avoid + RangeError by 0x3fffffffffffffff+1 on LP64. + + * insns.def (opt_succ): don't use 0x80000000 which assumes 32bit VALUE. + use FIX2LONG instead of FIX2INT. + [ruby-dev:31190] + Thu Jul 12 17:03:15 2007 Nobuyoshi Nakada * struct.c (rb_struct_init_copy): disallow changing the size. -- cgit