mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bigdecimal.c: suppress warnings
* ext/bigdecimal/bigdecimal.c (AddExponent): suppress strict-overflow warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a98b567af
commit
859314cbc6
1 changed files with 2 additions and 2 deletions
|
@ -3858,7 +3858,7 @@ AddExponent(Real *a, SIGNED_VALUE n)
|
|||
goto overflow;
|
||||
mb = m*(SIGNED_VALUE)BASE_FIG;
|
||||
eb = e*(SIGNED_VALUE)BASE_FIG;
|
||||
if (mb < eb) goto overflow;
|
||||
if (eb - mb > 0) goto overflow;
|
||||
}
|
||||
}
|
||||
else if (n < 0) {
|
||||
|
@ -3867,7 +3867,7 @@ AddExponent(Real *a, SIGNED_VALUE n)
|
|||
goto underflow;
|
||||
mb = m*(SIGNED_VALUE)BASE_FIG;
|
||||
eb = e*(SIGNED_VALUE)BASE_FIG;
|
||||
if (mb > eb) goto underflow;
|
||||
if (mb - eb > 0) goto underflow;
|
||||
}
|
||||
a->exponent = m;
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue