Fixup for r217830. Don't do left shifts on negative values