1. Ronald Oussoren
  2. pyobjc

Commits

Ronald Oussoren  committed 839f7be

Use correct function for converting a pointer to a python integer

For compatibility with ctypes.

  • Participants
  • Parent commits 7b349a2
  • Branches default

Comments (0)

Files changed (1)

File pyobjc-core/Modules/objc/module.m

View file
  • Ignore whitespace
         PyErr_SetString(PyExc_TypeError, "not an Objective-C object");
         return NULL;
     }
-    return PyInt_FromLong((long)PyObjCObject_GetObject(o));
+    return PyLong_FromVoidPtr((void*)PyObjCObject_GetObject(o));
 }