mirror of https://github.com/nothings/stb.git
Fix for warning 4244. Cast to short
parent
a7c8694d69
commit
a2df517a1a
|
@ -1768,7 +1768,7 @@ static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__
|
|||
} else {
|
||||
if (r == 0) {
|
||||
if (s)
|
||||
data[stbi__jpeg_dezigzag[k++]] = s;
|
||||
data[stbi__jpeg_dezigzag[k++]] = (short) s;
|
||||
break;
|
||||
}
|
||||
--r;
|
||||
|
|
Loading…
Reference in New Issue