Skip to content

Commit 71356d3

Browse files
author
tim.peters
committed
getpythonregpath(): Squash compiler warning about
mixing signed and unsigned types in comparison. Relatedly, `dataSize` is declared as DWORD, not as int, so change relevant cast from (int) to (DWORD). git-svn-id: http://svn.python.org/projects/python/trunk@42394 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 8eb559f commit 71356d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PC/getpathp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ getpythonregpath(HKEY keyBase, int skipcore)
306306
Py_ssize_t len = _tcslen(ppPaths[index]);
307307
_tcsncpy(szCur, ppPaths[index], len);
308308
szCur += len;
309-
assert(dataSize > len);
310-
dataSize -= (int)len;
309+
assert(dataSize > (DWORD)len);
310+
dataSize -= (DWORD)len;
311311
}
312312
}
313313
if (skipcore)

0 commit comments

Comments
 (0)