summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-02 14:31:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-02 14:31:20 (GMT)
commit217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2 (patch)
tree4737b4a91359c94953623ab9ee297e9a90f319e4 /Modules/threadmodule.c
parent1a3284ed69d545e4ef59869998cb8c29233a45fa (diff)
downloadcpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.zip
cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.gz
cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.bz2
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 876d5e2..d948154 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -493,7 +493,7 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
PyMem_DEL(boot);
return NULL;
}
- return PyInt_FromLong(ident);
+ return PyLong_FromLong(ident);
}
PyDoc_STRVAR(start_new_doc,
@@ -571,7 +571,7 @@ thread_get_ident(PyObject *self)
PyErr_SetString(ThreadError, "no current thread ident");
return NULL;
}
- return PyInt_FromLong(ident);
+ return PyLong_FromLong(ident);
}
PyDoc_STRVAR(get_ident_doc,
@@ -616,7 +616,7 @@ thread_stack_size(PyObject *self, PyObject *args)
return NULL;
}
- return PyInt_FromSsize_t((Py_ssize_t) old_size);
+ return PyLong_FromSsize_t((Py_ssize_t) old_size);
}
PyDoc_STRVAR(stack_size_doc,