summaryrefslogtreecommitdiff
path: root/src/iconcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iconcache.c')
-rw-r--r--src/iconcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iconcache.c b/src/iconcache.c
index b6e4aff..0be581b 100644
--- a/src/iconcache.c
+++ b/src/iconcache.c
@@ -66,7 +66,7 @@ find_largest_sizes (gulong *data,
w = data[0];
h = data[1];
- if (nitems < ((w * h) + 2))
+ if (nitems < ((gulong)(w * h) + 2))
return FALSE; /* not enough data */
*width = MAX (w, *width);
@@ -122,7 +122,7 @@ find_best_size (gulong *data,
w = data[0];
h = data[1];
- if (nitems < ((w * h) + 2))
+ if (nitems < ((gulong)(w * h) + 2))
break; /* not enough data */
if (best_start == NULL)