From 1cf46a6792a9e243edb857e131e44338bcbbd341 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 25 Feb 2008 17:58:00 +0000 Subject: 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 --- image/jpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image/jpeg.c') 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. -- cgit v1.2.3