Commits

Ronald Oussoren committed ce98ae1

Fix definition of Py_ARG_SIZE_T.

Thanks to Virgul Durpas for noting the error.

Comments (0)

Files changed (1)

pyobjc-core/Modules/objc/pyobjc-api.h

 #if (PY_VERSION_HEX < 0x02050000)
 typedef int Py_ssize_t;
 #define PY_FORMAT_SIZE_T ""
-#define Py_ARG_SIZE_T "n"
+#define Py_ARG_SIZE_T "i"
 #define PY_SSIZE_T_MAX INT_MAX
 
 #else
 
-#define Py_ARG_SIZE_T "i"
+#define Py_ARG_SIZE_T "n"
 #endif
 #endif