summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-12-27 16:14:30 (GMT)
committerBrian Curtin <brian@python.org>2012-12-27 16:14:30 (GMT)
commit62cf69ec7c8ccfccea3ea98da815d5090ccf2fff (patch)
treed967c821ea2249c26cfac2f228bcd5712e7df438 /PC
parent6f52027168196a68fc7c37ba1e7d65a16d1e2859 (diff)
parent12706f20825f78afa8305c1cbeb47900a790c21a (diff)
downloadcpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.zip
cpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.tar.gz
cpython-62cf69ec7c8ccfccea3ea98da815d5090ccf2fff.tar.bz2
Merge 3.2
Diffstat (limited to 'PC')
-rw-r--r--PC/winreg.c2
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;