KA10: Clean up coverity error.

This commit is contained in:
Richard Cornwell 2022-03-15 21:30:55 -04:00
parent af6665be05
commit 3d3675edbc

View file

@ -2934,7 +2934,8 @@ int Mem_read_byte(int n, uint16 *data, int byte) {
need -= 16; need -= 16;
else else
need -= 8; need -= 8;
*data |= val << need; if (need >= 0)
*data |= val << need;
} }
return s; return s;
} }