diff options
author | Brian Curtin <brian@python.org> | 2012-12-27 16:15:54 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2012-12-27 16:15:54 (GMT) |
commit | 4482b01d2308bd089546fc9cdffe613a54e15307 (patch) | |
tree | 0e4eb31ab089f28b1a8204b092c62ca6521ca542 /PC/winreg.c | |
parent | 6e5c8f992aa48c3790166f09a7baaa5ed01ca318 (diff) | |
parent | 62cf69ec7c8ccfccea3ea98da815d5090ccf2fff (diff) | |
download | cpython-4482b01d2308bd089546fc9cdffe613a54e15307.zip cpython-4482b01d2308bd089546fc9cdffe613a54e15307.tar.gz cpython-4482b01d2308bd089546fc9cdffe613a54e15307.tar.bz2 |
Merge 3.3
Diffstat (limited to 'PC/winreg.c')
-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 d3d6b83..08f6b5e 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; |