[Python-checkins] r58469 - sandbox/trunk/decimal-c/_decimal.c

mateusz.rukowicz python-checkins at python.org
Mon Oct 15 17:04:28 CEST 2007


Author: mateusz.rukowicz
Date: Mon Oct 15 17:04:28 2007
New Revision: 58469

Modified:
   sandbox/trunk/decimal-c/_decimal.c
Log:
Fixed some minor bug in richcompare.


Modified: sandbox/trunk/decimal-c/_decimal.c
==============================================================================
--- sandbox/trunk/decimal-c/_decimal.c	(original)
+++ sandbox/trunk/decimal-c/_decimal.c	Mon Oct 15 17:04:28 2007
@@ -2451,7 +2451,7 @@
     if (PyErr_Occurred())
         return NULL;
 
-    if ( (res == 0  && (op == Py_EQ || op == Py_LE || op == Py_GT || op == Py_GE)) ||
+    if ( (res == 0  && (op == Py_EQ || op == Py_LE || op == Py_GE)) ||
          (res == -1 && (op == Py_NE || op == Py_LT || op == Py_LE)) ||
          (res == 1  && (op == Py_NE || op == Py_GT || op == Py_GE)))
         Py_RETURN_TRUE;


More information about the Python-checkins mailing list