We were breaking Python's rules for comparison result returns - and

this only started mattering in Python 2.3.

Not part of the build.
This commit is contained in:
mhammond%skippinet.com.au 2003-07-23 00:23:45 +00:00
Родитель 9b54824d02
Коммит d1e853d30c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -174,7 +174,8 @@ Py_nsIID::PyTypeMethod_compare(PyObject *self, PyObject *other)
{
Py_nsIID *s_iid = (Py_nsIID *)self;
Py_nsIID *o_iid = (Py_nsIID *)other;
return memcmp(&s_iid->m_iid, &o_iid->m_iid, sizeof(s_iid->m_iid));
int rc = memcmp(&s_iid->m_iid, &o_iid->m_iid, sizeof(s_iid->m_iid));
return rc == 0 ? 0 : (rc < 0 ? -1 : 1);
}
/* static */ PyObject *