diff Python/sysmodule.c @ 13096:8c8de5b736dc legacy-trunk

Trent Mick's Win64 changes: size_t vs. int or long; also some overflow tests.
author Guido van Rossum <guido@python.org>
date Wed, 28 Jun 2000 22:07:35 +0000
parents 04c89d77dfdb
children 916fb024ce94
line wrap: on
line diff
--- a/Python/sysmodule.c	Wed Jun 28 22:05:44 2000 +0000
+++ b/Python/sysmodule.c	Wed Jun 28 22:07:35 2000 +0000
@@ -504,7 +504,7 @@
 	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));