mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (opt_succ): use cast to shut a warning up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a309f10475
commit
0b0b62e9a4
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ Fri Jul 13 17:32:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
* vm.c (vm_free): clear free'ed living_threads field.
|
* vm.c (vm_free): clear free'ed living_threads field.
|
||||||
[ruby-dev:31163]
|
[ruby-dev:31163]
|
||||||
|
|
||||||
|
* insns.def (opt_succ): use cast to shut a warning up.
|
||||||
|
|
||||||
Fri Jul 13 16:10:00 2007 Tanaka Akira <akr@fsij.org>
|
Fri Jul 13 16:10:00 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
|
* lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
|
||||||
|
|
|
@ -2304,7 +2304,7 @@ opt_succ
|
||||||
const VALUE obj = INT2FIX(1);
|
const VALUE obj = INT2FIX(1);
|
||||||
/* fixnum + INT2FIX(1) */
|
/* fixnum + INT2FIX(1) */
|
||||||
val = (recv + (obj & (~1)));
|
val = (recv + (obj & (~1)));
|
||||||
if ((~(recv ^ obj) & (recv ^ val)) & (LONG_MAX + 1)) {
|
if ((~(recv ^ obj) & (recv ^ val)) & ((unsigned long)LONG_MAX + 1)) {
|
||||||
val = rb_big_plus(rb_int2big(FIX2LONG(recv)),
|
val = rb_big_plus(rb_int2big(FIX2LONG(recv)),
|
||||||
rb_int2big(FIX2LONG(obj)));
|
rb_int2big(FIX2LONG(obj)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue