From f02463e926d449c8376884f3f6caf689e29a204b Mon Sep 17 00:00:00 2001 From: amiconn Date: Sun, 7 Jun 2009 22:50:12 +0000 Subject: [PATCH] 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 --- apps/recorder/jpeg_load.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c index 333401995..754cf41ab 100644 --- a/apps/recorder/jpeg_load.c +++ b/apps/recorder/jpeg_load.c @@ -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; } -- 2.11.4.GIT