summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 15:21:09 (GMT)
committerGitHub <noreply@github.com>2022-02-07 15:21:09 (GMT)
commitd3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2 (patch)
treec7cdf81c8a5e0d32afc1f58e7237b19ba4bf12cd /Python/import.c
parent4b603f628207b380a8a2f22d7ff5d2dbb0853e2e (diff)
downloadcpython-d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2.zip
cpython-d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2.tar.gz
cpython-d3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2.tar.bz2
bpo-39277: Fix PY_TIMEOUT_MAX cast in _threadmodule.c (GH-31195)
Cast PY_TIMEOUT_MAX to double, not to _PyTime_t. Fix the clang warning: Modules/_threadmodule.c:1648:26: warning: implicit conversion from '_PyTime_t' (aka 'long') to 'double' changes value from 9223372036854775 to 9223372036854776 [-Wimplicit-const-int-float-conversion] double timeout_max = (_PyTime_t)PY_TIMEOUT_MAX * 1e-6; ^~~~~~~~~~~~~~~~~~~~~~~~~ ~
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions