mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby.h: suppress warnings
* include/ruby/ruby.h (rb_float_value): suppress warnings. [ruby-core:47406][Bug #6971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1f29acae28
commit
2000173101
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Sep 3 21:22:37 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* include/ruby/ruby.h (rb_float_value): suppress warnings.
|
||||||
|
[ruby-core:47406][Bug #6971]
|
||||||
|
|
||||||
Mon Sep 3 14:49:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Sep 3 14:49:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/matrix.rb (Vector#magnitude): accumulate squares of absolute
|
* lib/matrix.rb (Vector#magnitude): accumulate squares of absolute
|
||||||
|
|
|
@ -743,7 +743,7 @@ rb_float_value(VALUE v)
|
||||||
/* e: xx1... -> 011... */
|
/* e: xx1... -> 011... */
|
||||||
/* xx0... -> 100... */
|
/* xx0... -> 100... */
|
||||||
/* ^b63 */
|
/* ^b63 */
|
||||||
t.v = RUBY_BIT_ROTR(2 - b63 | (v & ~0x03), 3);
|
t.v = RUBY_BIT_ROTR((2 - b63) | (v & ~0x03), 3);
|
||||||
return t.d;
|
return t.d;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue