X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fimage_load_cr3.c;h=d40a75cf3b1961ba198fcae3cd20201205b59c96;hp=1c3c549cdf833974cd25afc731892d01cdbcf336;hb=abee14da6391259e359e222fb51c116dc19d554d;hpb=68c2de35a06094f47d2b9737a0d78362d9cb5e45 diff --git a/src/image_load_cr3.c b/src/image_load_cr3.c index 1c3c549c..d40a75cf 100644 --- a/src/image_load_cr3.c +++ b/src/image_load_cr3.c @@ -93,7 +93,8 @@ static void convert_cmyk_to_rgb (struct jpeg_decompress_struct *cinfo, guchar **lines) { - gint i, j; + gint i; + guint j; g_return_if_fail (cinfo != NULL); g_return_if_fail (cinfo->output_components == 4); @@ -217,7 +218,7 @@ static void skip_input_data (j_decompress_ptr cinfo, long num_bytes) { struct jpeg_source_mgr* src = (struct jpeg_source_mgr*) cinfo->src; - if (num_bytes > src->bytes_in_buffer) + if ((gulong)num_bytes > src->bytes_in_buffer) { ERREXIT(cinfo, JERR_INPUT_EOF); } @@ -267,7 +268,7 @@ static gboolean image_loader_cr3_load (gpointer loader, const guchar *buf, gsize */ gboolean found = FALSE; gint i; - gint n; + guint n; n = 0; while (n < count - 4 && !found)