summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/gestaltmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/gestaltmodule.c')
-rw-r--r--Mac/Modules/gestaltmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/gestaltmodule.c b/Mac/Modules/gestaltmodule.c
index ddfa94a..387f93c5 100644
--- a/Mac/Modules/gestaltmodule.c
+++ b/Mac/Modules/gestaltmodule.c
@@ -40,7 +40,7 @@ gestalt_gestalt(PyObject *self, PyObject *args)
iErr = Gestalt ( selector, &response );
if (iErr != 0)
return PyMac_Error(iErr);
- return PyInt_FromLong(response);
+ return PyLong_FromLong(response);
}
static struct PyMethodDef gestalt_methods[] = {