aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-30 16:09:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-30 16:09:54 +0000
commitd07b0842393d12fcfe2e2b217dc16e31e69b6c1c (patch)
tree962d23ce73c58507031e48dcf4ec5e79feb46d55 /ext
parente7207d040463ede18d9060c2c4661cee88348869 (diff)
downloadruby-d07b0842393d12fcfe2e2b217dc16e31e69b6c1c.tar.gz
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index af3d644858..51bd6447ff 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;