Index: gobject/pygenum.c
===================================================================
--- gobject/pygenum.c	(revision 746)
+++ gobject/pygenum.c	(working copy)
@@ -35,10 +35,8 @@
 	return Py_NotImplemented;
     }
 
-    if (PyObject_TypeCheck(other, &PyGEnum_Type) && ((PyGEnum*)other)->gtype != self->gtype) {
+    if (PyObject_TypeCheck(other, &PyGEnum_Type) && ((PyGEnum*)other)->gtype != self->gtype)
 	PyErr_Warn(PyExc_Warning, "comparing different enum types");
-	return NULL;
-    }
 
     return pyg_integer_richcompare((PyObject *)self, other, op);
 }
