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).
This commit is contained in:
Tim Peters 2006-02-16 00:35:06 +00:00
parent 4701af5bf5
commit c7f6cf6247
1 changed files with 2 additions and 2 deletions

View File

@ -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)