diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-08 00:06:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 00:06:55 +0100 |
commit | dd431b32f4a599fff9c9cddfe9d48cc66b347481 (patch) | |
tree | b1cd5d6fa513296840f8d6883f6b302a98c1245d /Python/import.c | |
parent | a0374dd34aa25f0895195d388b5ceff43b121b00 (diff) | |
download | cpython-git-dd431b32f4a599fff9c9cddfe9d48cc66b347481.tar.gz |
PyLong_FromString(): fix Coverity CID 1424951 (#4738)
Explicitly cast digits (Py_ssize_t) to double to fix the following
false-alarm warning from Coverity:
"fsize_z = digits * log_base_BASE[base] + 1;"
CID 1424951: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
Dividing integer expressions "9223372036854775783UL" and "4UL", and
then converting the integer quotient to type "double". Any remainder,
or fractional part of the quotient, is ignored.
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions