summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-10 01:03:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-10 01:03:32 (GMT)
commitb183a25c29e45b8aa4a07ddd6223e6bf12c43309 (patch)
tree0b8ecb7e7a04fd462084d946b7100d5626493d25 /Modules/_testcapimodule.c
parent6974a51d1a1eb73827aa1393a65c1f6fac256d0e (diff)
downloadcpython-b183a25c29e45b8aa4a07ddd6223e6bf12c43309.zip
cpython-b183a25c29e45b8aa4a07ddd6223e6bf12c43309.tar.gz
cpython-b183a25c29e45b8aa4a07ddd6223e6bf12c43309.tar.bz2
Fix some warnings on HP-UX when using cc/aCC
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 60c71d7..b1461bd 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -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)