• Tom Lane's avatar
    Tweak the overflow checks in integer division functions to complain if the · 8acfc759
    Tom Lane authored
    machine produces zero (rather than the more usual minimum-possible-integer)
    for the only possible overflow case.  This has been seen to occur for at least
    some word widths on some hardware, and it's cheap enough to check for
    everywhere.  Per Peter's analysis of buildfarm reports.
    
    This could be back-patched, but in the absence of any gripes from the field
    I doubt it's worth the trouble.
    8acfc759
int8.c 29.3 KB