[前][次][番号順一覧][スレッド一覧]

ruby-changes:6759

From: mame <ko1@a...>
Date: Thu, 31 Jul 2008 01:10:08 +0900 (JST)
Subject: [ruby-changes:6759] Ruby:r18275 (trunk): * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology

mame	2008-07-31 01:09:54 +0900 (Thu, 31 Jul 2008)

  New Revision: 18275

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18275

  Log:
    * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
      condition.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18274)
+++ ChangeLog	(revision 18275)
@@ -1,3 +1,8 @@
+Thu Jul 31 01:09:28 2008  Yusuke Endoh  <mame@t...>
+
+	* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
+	  condition.
+
 Thu Jul 31 00:58:33 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* pack.c (pack_unpack): reduced static variables.
Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 18274)
+++ ext/bigdecimal/bigdecimal.c	(revision 18275)
@@ -2095,9 +2095,9 @@
 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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]