summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-28 22:07:35 +0000
committerGuido van Rossum <guido@python.org>2000-06-28 22:07:35 +0000
commita53d534fb8dfc476652e45c58b795bf021ea586a (patch)
tree6b29848cddf7fe5e95c712b62b5fd71706cf9225 /Python/sysmodule.c
parentc457c777956d0ff9d689841cbddb8e7770605d42 (diff)
downloadcpython-a53d534fb8dfc476652e45c58b795bf021ea586a.tar.gz
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 6219454ed6..843df8dda3 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -504,7 +504,7 @@ _PySys_Init()
Py_XDECREF(v);
#ifdef MS_COREDLL
PyDict_SetItemString(sysdict, "dllhandle",
- v = PyInt_FromLong((int)PyWin_DLLhModule));
+ v = PyLong_FromVoidPtr(PyWin_DLLhModule));
Py_XDECREF(v);
PyDict_SetItemString(sysdict, "winver",
v = PyString_FromString(PyWin_DLLVersionString));