diff options
author | Brian Curtin <brian@python.org> | 2012-12-27 16:14:30 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2012-12-27 16:14:30 (GMT) |
commit | 62cf69ec7c8ccfccea3ea98da815d5090ccf2fff (patch) | |
tree | d967c821ea2249c26cfac2f228bcd5712e7df438 /PC | |
parent | 6f52027168196a68fc7c37ba1e7d65a16d1e2859 (diff) | |
parent | 12706f20825f78afa8305c1cbeb47900a790c21a (diff) | |
download | cpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.zip cpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.tar.gz cpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.tar.bz2 |
Merge 3.2
Diffstat (limited to 'PC')
-rw-r--r-- | PC/winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index 091b477..afc59217 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -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; |