Fix some warnings on HP-UX when using cc/aCC

This commit is contained in:
Neal Norwitz 2006-04-10 01:03:32 +00:00
parent 6974a51d1a
commit b183a25c29
4 changed files with 11 additions and 10 deletions

View file

@ -404,7 +404,7 @@ test_k_code(PyObject *self)
PyTuple_SET_ITEM(tuple, 0, num);
value = -1;
value = 0;
if (PyArg_ParseTuple(tuple, "k:test_k_code", &value) < 0)
return NULL;
if (value != ULONG_MAX)
@ -423,7 +423,7 @@ test_k_code(PyObject *self)
PyTuple_SET_ITEM(tuple, 0, num);
value = -1;
value = 0;
if (PyArg_ParseTuple(tuple, "k:test_k_code", &value) < 0)
return NULL;
if (value != (unsigned long)-0x42)