• Tom Lane's avatar
    Suppress -Wshift-negative-value warnings. · 9b53d966
    Tom Lane authored
    Clean up four places that result in compiler warnings when using recent
    gcc with this warning class enabled (as seen on buildfarm members
    calliphoridae, skink, and others).  In all these places, this is purely
    cosmetic, because the shift distance could not be large enough to risk
    a change of sign, so there's no chance of implementation-dependent
    behavior.  Still, it's easy enough to avoid the warning by casting the
    shifted value to unsigned, so let's do that.
    
    Patch HEAD only, this isn't worth a back-patch.
    9b53d966
varbit.c 41.3 KB