mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-126433: Fix compiler warnings on 32-bit Windows (#126444)
This commit is contained in:
parent
bbfd9c92fa
commit
0b67ce930a
5 changed files with 12 additions and 10 deletions
|
@ -223,7 +223,7 @@ find_home_value(const char *buffer, DWORD maxlen, const char **start, DWORD *len
|
|||
return 0;
|
||||
}
|
||||
for (const char *s = strstr(buffer, "home");
|
||||
s && ((ptrdiff_t)s - (ptrdiff_t)buffer) < maxlen;
|
||||
s && (size_t)((ptrdiff_t)s - (ptrdiff_t)buffer) < maxlen;
|
||||
s = strstr(s + 1, "\nhome")
|
||||
) {
|
||||
if (*s == '\n') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue