]> granicus.if.org Git - python/commitdiff
Oops, didn't mean to commit the removal of float_compare!
authorMichael W. Hudson <mwh@python.net>
Thu, 26 Feb 2004 13:16:03 +0000 (13:16 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 26 Feb 2004 13:16:03 +0000 (13:16 +0000)
Objects/floatobject.c

index 87395515f8876475816c6fe5f017977d179e9056..b3bcaa91ca09f3c317161acd1d09d22c525569cc 100644 (file)
@@ -852,7 +852,7 @@ PyTypeObject PyFloat_Type = {
        (printfunc)float_print,                 /* tp_print */
        0,                                      /* tp_getattr */
        0,                                      /* tp_setattr */
-       0,              /* tp_compare */
+       (cmpfunc)float_compare,                 /* tp_compare */
        (reprfunc)float_repr,                   /* tp_repr */
        &float_as_number,                       /* tp_as_number */
        0,                                      /* tp_as_sequence */