• Victor Stinner's avatar
    Fix CID-1420310: cast PY_TIMEOUT_MAX to _Py_time_t (#4646) · c319eeeb
    Victor Stinner authored
    Fix the following false-alarm Coverity warning:
    
        Result is not floating-point
        (UNINTENDED_INTEGER_DIVISION)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.
    
        To compute and use a non-integer quotient, change or cast either
        operand to type double. If integer division is intended, consider
        indicating that by casting the result to type long long .
    c319eeeb
_threadmodule.c 43.5 KB