1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mame 2008-07-30 16:09:54 +00:00
parent e7207d0404
commit d07b084239
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
condition.
Thu Jul 31 00:58:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (pack_unpack): reduced static variables.

View file

@ -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;