Fixing add 32 w/ saturate.

This commit is contained in:
Ben Vanik 2014-01-19 00:50:27 -08:00
parent 0bc49621d4
commit f75517f7f8
1 changed files with 1 additions and 1 deletions

View File

@ -2350,7 +2350,7 @@ uint32_t Translate_VECTOR_ADD_I32(IntCodeState& ics, const IntCode* i) {
if (v > 0x7FFFFFFF) {
dest.i4[n] = 0x7FFFFFFF;
ics.did_saturate = 1;
} else if (v < 0x80000000ull) {
} else if (v < -0x80000000ll) {
dest.i4[n] = 0x80000000;
ics.did_saturate = 1;
} else {