Fix a signed overflow error on i686 with GCC 4.7.0