From a53d534fb8dfc476652e45c58b795bf021ea586a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 28 Jun 2000 22:07:35 +0000 Subject: Trent Mick's Win64 changes: size_t vs. int or long; also some overflow tests. --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/sysmodule.c') 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)); -- cgit v1.2.1