Files
cpython/Modules
Victor Stinner 93fd478231 faulthandler: use _PyTime_t rather than double for timeout (#4139)
Use the _PyTime_t type rather than double for the faulthandler
timeout in dump_traceback_later().

This change should fix the following Coverity warning:

CID 1420311:  Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
Dividing integer expressions "9223372036854775807LL" and "1000LL",
and then converting the integer quotient to type "double". Any
remainder, or fractional part of the quotient, is ignored.

    if ((timeout * 1e6) >= (double) PY_TIMEOUT_MAX) {

The warning comes from (double)PY_TIMEOUT_MAX with:

    #define PY_TIMEOUT_MAX (PY_LLONG_MAX / 1000)
2017-10-27 07:27:12 -07:00
..
2017-03-23 17:53:47 +02:00
2016-10-18 16:29:27 +02:00
2016-10-18 16:29:27 +02:00
2016-09-06 10:46:49 -07:00
2017-10-16 12:49:41 -07:00
2017-09-14 18:13:16 -07:00
2017-01-31 23:31:10 -08:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.