Kaydet (Commit) c7f6cf62 authored tarafından Tim Peters's avatar Tim Peters

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).
üst 4701af5b
...@@ -306,8 +306,8 @@ getpythonregpath(HKEY keyBase, int skipcore) ...@@ -306,8 +306,8 @@ getpythonregpath(HKEY keyBase, int skipcore)
Py_ssize_t len = _tcslen(ppPaths[index]); Py_ssize_t len = _tcslen(ppPaths[index]);
_tcsncpy(szCur, ppPaths[index], len); _tcsncpy(szCur, ppPaths[index], len);
szCur += len; szCur += len;
assert(dataSize > len); assert(dataSize > (DWORD)len);
dataSize -= (int)len; dataSize -= (DWORD)len;
} }
} }
if (skipcore) if (skipcore)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment