Work around anti-aliasing warning/problem with gcc

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-04-11 19:22:45 +00:00
commit 512cf3d12d

View file

@ -485,11 +485,7 @@ SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) )
res = Py_True;
else
res = Py_False;
Py_INCREF(res);
res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
return res;
}