projects
/
geeqie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile errors
[geeqie.git]
/
src
/
image_load_cr3.c
diff --git
a/src/image_load_cr3.c
b/src/image_load_cr3.c
index
1c3c549
..
d40a75c
100644
(file)
--- 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)
{
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);
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;
{
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);
}
{
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;
*/
gboolean found = FALSE;
gint i;
- gint n;
+ g
u
int n;
n = 0;
while (n < count - 4 && !found)
n = 0;
while (n < count - 4 && !found)