diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-11-01 12:13:49 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-11-01 12:13:49 +0000 |
commit | d055ff4a94e5fe2f06a1454c4baa60c641ea8012 (patch) | |
tree | c3128ead15bfd5c3df09c4d9e10676405fce8a95 /apps/plugins/imageviewer/png/tinflate.c | |
parent | 308936cd356fa2c559fbc2b2e3273403437e5fe7 (diff) | |
download | rockbox-d055ff4a94e5fe2f06a1454c4baa60c641ea8012.tar.gz rockbox-d055ff4a94e5fe2f06a1454c4baa60c641ea8012.zip |
reduce casts between "unsinged char *" and "fb_data *". make calculation precise. maintain spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28428 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/png/tinflate.c')
-rw-r--r-- | apps/plugins/imageviewer/png/tinflate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/imageviewer/png/tinflate.c b/apps/plugins/imageviewer/png/tinflate.c index b142f7afe7..95d8e2b483 100644 --- a/apps/plugins/imageviewer/png/tinflate.c +++ b/apps/plugins/imageviewer/png/tinflate.c | |||
@@ -148,7 +148,7 @@ TINF_TABLES tbl = { | |||
148 | 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, | 148 | 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, |
149 | 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f}, | 149 | 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f}, |
150 | }, | 150 | }, |
151 | 151 | ||
152 | .length_bits = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 152 | .length_bits = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
153 | 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, | 153 | 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, |
154 | 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, | 154 | 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, |
@@ -494,7 +494,7 @@ int tinf_uncompress(void *dest, unsigned int *destLen, | |||
494 | } | 494 | } |
495 | 495 | ||
496 | if (res != TINF_OK) return TINF_DATA_ERROR; | 496 | if (res != TINF_OK) return TINF_DATA_ERROR; |
497 | 497 | ||
498 | if (d.source > (unsigned char *)source + sourceLen) | 498 | if (d.source > (unsigned char *)source + sourceLen) |
499 | return TINF_DATA_ERROR; | 499 | return TINF_DATA_ERROR; |
500 | } while (!bfinal); | 500 | } while (!bfinal); |