summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-12-27 20:06:38 (GMT)
committerBrian Curtin <brian@python.org>2012-12-27 20:06:38 (GMT)
commitf8704fb24ef547b066e43f81d0e2e3f4ca427296 (patch)
treefb315b5d1cb3e44de151958080ab5a694a135a72 /PC
parent4482b01d2308bd089546fc9cdffe613a54e15307 (diff)
parente6bfa2911ad061c664fdd09515a32c52e18b871c (diff)
downloadcpython-f8704fb24ef547b066e43f81d0e2e3f4ca427296.zip
cpython-f8704fb24ef547b066e43f81d0e2e3f4ca427296.tar.gz
cpython-f8704fb24ef547b066e43f81d0e2e3f4ca427296.tar.bz2
Merge 3.3
Diffstat (limited to 'PC')
-rw-r--r--PC/winreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index 08f6b5e..a2511d5 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -912,9 +912,9 @@ Reg2Py(BYTE *retDataBuf, DWORD retDataSize, DWORD typ)
switch (typ) {
case REG_DWORD:
if (retDataSize == 0)
- obData = PyLong_FromLong(0);
+ obData = PyLong_FromUnsignedLong(0);
else
- obData = PyLong_FromLong(*(int *)retDataBuf);
+ obData = PyLong_FromUnsignedLong(*(int *)retDataBuf);
break;
case REG_SZ:
case REG_EXPAND_SZ: