diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
commit | 1cf46a6792a9e243edb857e131e44338bcbbd341 (patch) | |
tree | 9d145155307f4bc19746e486c7cd49ef897a49a1 /image/jpeg.c | |
parent | 674591f63df9c9b1e8e02aef4992a24b39cda0fc (diff) | |
download | netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.gz netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.bz2 |
SignednessWarnings.squash()
Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice.
svn path=/trunk/netsurf/; revision=3868
Diffstat (limited to 'image/jpeg.c')
-rw-r--r-- | image/jpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/image/jpeg.c b/image/jpeg.c index 11f591b5f..523a52fce 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -95,7 +95,7 @@ bool nsjpeg_convert(struct content *c, int w, int h) return false; } jpeg_create_decompress(&cinfo); - source_mgr.next_input_byte = c->source_data; + source_mgr.next_input_byte = (unsigned char *) c->source_data; source_mgr.bytes_in_buffer = c->source_size; cinfo.src = &source_mgr; jpeg_read_header(&cinfo, TRUE); @@ -180,7 +180,7 @@ void nsjpeg_init_source(j_decompress_ptr cinfo) } -static char nsjpeg_eoi[] = { 0xff, JPEG_EOI }; +static unsigned char nsjpeg_eoi[] = { 0xff, JPEG_EOI }; /** * JPEG data source manager: fill the input buffer. |