Undo the delta on ARM but making the loop variables signed as before r21205. GCC is weird...

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2009-06-07 22:50:12 +00:00
parent 1d6df54df2
commit d5842005c0

View file

@ -1506,8 +1506,7 @@ INLINE void fix_huff_tables(struct jpeg *p_jpeg)
*/
INLINE void fix_quant_tables(struct jpeg *p_jpeg)
{
int shift, i, a;
unsigned x, y;
int shift, i, x, y, a;
for (i = 0; i < 2; i++)
{
shift = idct_tbl[p_jpeg->v_scale[i]].v_scale +
@ -1515,9 +1514,9 @@ INLINE void fix_quant_tables(struct jpeg *p_jpeg)
if (shift)
{
a = 0;
for (y = 0; y < BIT_N(p_jpeg->h_scale[i]); y++)
for (y = 0; y < (int)BIT_N(p_jpeg->h_scale[i]); y++)
{
for (x = 0; x < BIT_N(p_jpeg->v_scale[i]); x++)
for (x = 0; x < (int)BIT_N(p_jpeg->v_scale[i]); x++)
p_jpeg->quanttable[i][zig[a+x]] <<= shift;
a += 8;
}