diff options
author | Victor Stinner <vstinner@python.org> | 2024-11-05 15:05:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 15:05:13 (GMT) |
commit | 0b67ce930a56c4ffd597b1a658ddcbacfb40e798 (patch) | |
tree | d94e43675e70b3a16c654190f37bc449a7e11633 /PC | |
parent | bbfd9c92fa3e3d77a86c7858617eb3d09de44fd1 (diff) | |
download | cpython-0b67ce930a56c4ffd597b1a658ddcbacfb40e798.zip cpython-0b67ce930a56c4ffd597b1a658ddcbacfb40e798.tar.gz cpython-0b67ce930a56c4ffd597b1a658ddcbacfb40e798.tar.bz2 |
gh-126433: Fix compiler warnings on 32-bit Windows (#126444)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/venvlauncher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/venvlauncher.c b/PC/venvlauncher.c index b1c8d07..b6bb021 100644 --- a/PC/venvlauncher.c +++ b/PC/venvlauncher.c @@ -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') { |