Browse Source

DCPacker chaged to deal with unsigned

Roger Hughston 18 years ago
parent
commit
7862f07d3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/dcparser/dcPacker.cxx

+ 1 - 1
direct/src/dcparser/dcPacker.cxx

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