ruby-cvs:15795
From: (ocean) <ocean ruby-lang.org>
Date: Fri, 21 Oct 2005 15:25:19 +0900
Subject: [ruby-cvs:15795] ruby: * bignum.c (bignew_1): convertion from `int' to `char' discards
ocean Fri, 21 Oct 2005 15:25:19 +0900
Modified files:
ruby:
bignum.c ChangeLog
Log:
* bignum.c (bignew_1): convertion from `int' to `char' discards
upper bits, (ie. (char)0xff00 -> 0) so it's better to test if
nonzero and set 0 or 1 instead of simply casting ... as a flag usage.
(but I believe this won't cause actual bug in current implementation)
[ruby-dev:27055]
Revision Changes Path
1.125 +6 -6 ruby/bignum.c
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/bignum.c?cvsroot=src&r1=1.124&r2=1.125
1.4701 +8 -0 ruby/ChangeLog
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ChangeLog?cvsroot=src&r1=1.4700&r2=1.4701