diff --git a/PC/getpathp.c b/PC/getpathp.c index 0701d731544..37a9c0b9900 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -306,8 +306,8 @@ getpythonregpath(HKEY keyBase, int skipcore) Py_ssize_t len = _tcslen(ppPaths[index]); _tcsncpy(szCur, ppPaths[index], len); szCur += len; - assert(dataSize > len); - dataSize -= (int)len; + assert(dataSize > (DWORD)len); + dataSize -= (DWORD)len; } } if (skipcore)