DCPacker chaged to deal with unsigned

This commit is contained in:
Roger Hughston 2007-04-27 02:20:23 +00:00
parent 554430ab21
commit 7862f07d3c

View File

@ -691,7 +691,7 @@ pack_object(PyObject *object) {
if (PyInt_Check(object)) {
#else
if (PyLong_Check(object)) {
pack_int(PyLong_AsUnsignedLong(object));
pack_uint(PyLong_AsUnsignedLong(object));
} else if (PyInt_Check(object)) {
#endif
pack_int(PyInt_AS_LONG(object));