Fix left shift of negative signed int value undefined behavior with --enable-float-approx. Reported by toto.