Fix for warning 4244. Cast to short

This commit is contained in:
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;
@ -2192,7 +2192,7 @@ static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])
// pass 1
dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6
dct_trn16(row2, row3);
dct_trn16(row4, row5);
dct_trn16(row4, row5);
dct_trn16(row6, row7);
// pass 2
@ -6115,7 +6115,7 @@ static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)
#ifndef STBI_NO_PSD
if (stbi__psd_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_PIC
if (stbi__pic_info(s, x, y, comp)) return 1;
#endif