Skip to content

Commit 9ace2be

Browse files
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).
1 parent 220f1e2 commit 9ace2be

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)