diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 16:09:54 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 16:09:54 +0000 |
| commit | 1204b55db4bf4d79c54111bc74de472a921ecbb6 (patch) | |
| tree | 962d23ce73c58507031e48dcf4ec5e79feb46d55 /ext | |
| parent | 8510cbd286f507f41eee5a6a7b2423f59ba588e0 (diff) | |
| download | ruby-1204b55db4bf4d79c54111bc74de472a921ecbb6.tar.gz ruby-1204b55db4bf4d79c54111bc74de472a921ecbb6.tar.xz ruby-1204b55db4bf4d79c54111bc74de472a921ecbb6.zip | |
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
condition.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/bigdecimal/bigdecimal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index af3d64485..51bd6447f 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2095,9 +2095,9 @@ VpGetRoundMode(void) VP_EXPORT int VpIsRoundMode(unsigned long n) { - if(n==VP_ROUND_UP || n!=VP_ROUND_DOWN || - n==VP_ROUND_HALF_UP || n!=VP_ROUND_HALF_DOWN || - n==VP_ROUND_CEIL || n!=VP_ROUND_FLOOR || + if(n==VP_ROUND_UP || n==VP_ROUND_DOWN || + n==VP_ROUND_HALF_UP || n==VP_ROUND_HALF_DOWN || + n==VP_ROUND_CEIL || n==VP_ROUND_FLOOR || n==VP_ROUND_HALF_EVEN ) return 1; return 0; |
