summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-06-07 22:50:12 +0000
committerJens Arnold <amiconn@rockbox.org>2009-06-07 22:50:12 +0000
commitd5842005c08c10e315d3a5ac6a7e8230e0e3e135 (patch)
treef08f11c633865bbd602daa3a68e02f9288c992c8 /apps
parent1d6df54df27cb41c02226678a2c8f9feddd1a1e0 (diff)
downloadrockbox-d5842005c08c10e315d3a5ac6a7e8230e0e3e135.tar.gz
rockbox-d5842005c08c10e315d3a5ac6a7e8230e0e3e135.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/jpeg_load.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c
index 3334019958..754cf41ab1 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)
1506 */ 1506 */
1507INLINE void fix_quant_tables(struct jpeg *p_jpeg) 1507INLINE void fix_quant_tables(struct jpeg *p_jpeg)
1508{ 1508{
1509 int shift, i, a; 1509 int shift, i, x, y, a;
1510 unsigned x, y;
1511 for (i = 0; i < 2; i++) 1510 for (i = 0; i < 2; i++)
1512 { 1511 {
1513 shift = idct_tbl[p_jpeg->v_scale[i]].v_scale + 1512 shift = idct_tbl[p_jpeg->v_scale[i]].v_scale +
@@ -1515,9 +1514,9 @@ INLINE void fix_quant_tables(struct jpeg *p_jpeg)
1515 if (shift) 1514 if (shift)
1516 { 1515 {
1517 a = 0; 1516 a = 0;
1518 for (y = 0; y < BIT_N(p_jpeg->h_scale[i]); y++) 1517 for (y = 0; y < (int)BIT_N(p_jpeg->h_scale[i]); y++)
1519 { 1518 {
1520 for (x = 0; x < BIT_N(p_jpeg->v_scale[i]); x++) 1519 for (x = 0; x < (int)BIT_N(p_jpeg->v_scale[i]); x++)
1521 p_jpeg->quanttable[i][zig[a+x]] <<= shift; 1520 p_jpeg->quanttable[i][zig[a+x]] <<= shift;
1522 a += 8; 1521 a += 8;
1523 } 1522 }