mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Merge 3.3
This commit is contained in:
commit
4482b01d23
3 changed files with 16 additions and 1 deletions
|
@ -785,7 +785,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
|
|||
memcpy(*retDataBuf, &zero, sizeof(DWORD));
|
||||
}
|
||||
else {
|
||||
DWORD d = PyLong_AsLong(value);
|
||||
DWORD d = PyLong_AsUnsignedLong(value);
|
||||
memcpy(*retDataBuf, &d, sizeof(DWORD));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue