Skip to content

Commit

Permalink
getpythonregpath(): Squash compiler warning about
Browse files Browse the repository at this point in the history
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).
  • Loading branch information
tim-one committed Feb 16, 2006
1 parent 4701af5 commit c7f6cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PC/getpathp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c7f6cf6

Please sign in to comment.