mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
This commit is contained in:
parent
6f2a5efec9
commit
582acece2e
9 changed files with 40 additions and 21 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue