commit | 2cd49cbfab0dd294de421893048ab614518fa263 | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Mon Mar 17 16:00:30 2014 +0000 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Thu Mar 27 19:22:49 2014 +0400 |
tree | 0411e10ca110213a2a8b6044c37d8456150a50ba | |
parent | e939c6ed619e2cf98c379318f6ee389c97163f18 [diff] |
target-i386: Avoid shifting left into sign bit Add 'U' suffixes where necessary to avoid (1 << 31) which shifts left into the sign bit, which is undefined behaviour. Add the suffix also for other constants in the same groupings even if they don't shift into bit 31, for consistency. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>