mirror of
https://github.com/simtactics/niotso.git
synced 2025-03-15 08:11:22 +00:00
Fixed silly mistake regarding 16-bit capping behavior
This commit is contained in:
parent
085ac5227c
commit
b3985e7306
1 changed files with 3 additions and 3 deletions
|
@ -93,10 +93,10 @@ int utk_decode(const uint8_t *__restrict InBuffer, uint8_t *__restrict OutBuffer
|
|||
for(i=0; i<BlockSize; i++){
|
||||
int value = round(p.DecompressedBlock[i]);
|
||||
|
||||
if(value < -32767)
|
||||
if(value < -32768)
|
||||
value = -32768;
|
||||
else if(value > 32767)
|
||||
value = 32767;
|
||||
else if(value > 32768)
|
||||
value = 32768;
|
||||
|
||||
write_uint16(OutBuffer, value);
|
||||
OutBuffer += 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue