Fix for warning 4244. Cast to short

pull/66/head
Sergio Gonzalez 2014-12-29 18:43:57 -06:00
parent a7c8694d69
commit a2df517a1a
1 changed files with 3 additions and 3 deletions

View File

@ -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;