mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-126433: Fix compiler warnings on 32-bit Windows (#126444)
(cherry picked from commit 0b67ce930a
)
This commit is contained in:
parent
effedb5ff0
commit
bf6fa21a91
4 changed files with 9 additions and 7 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