]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131296: Avoid posixmodule.c warning (GH-133142)
authorWulian233 <1055917385@qq.com>
Mon, 5 May 2025 16:45:15 +0000 (00:45 +0800)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 16:45:15 +0000 (17:45 +0100)
commitb6c2ef0c7a1e344681f9a8649bb662208ffd01cf
treec76a58bc130761af784aea53e7d1371022936805
parent0c5151bc81ec8e8588bef4389df12a9ab50e9fa0
gh-131296: Avoid posixmodule.c warning (GH-133142)

Clang-cl detects that on 32-bit builds the variable is always smaller than the value. But since the same code is used for other architectures, we can't just _fix_ it. This cast avoids the tautological-constant-out-of-range-compare warning.
Modules/posixmodule.c