mirror of https://github.com/python/cpython
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:
parent
4701af5bf5
commit
c7f6cf6247
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue