summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/fitz/filter-thunder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/filter-thunder.c b/source/fitz/filter-thunder.c
index 66ac37e7..6e11ac5f 100644
--- a/source/fitz/filter-thunder.c
+++ b/source/fitz/filter-thunder.c
@@ -25,8 +25,8 @@ next_thunder(fz_context *ctx, fz_stream *stm, size_t max)
unsigned char *ep;
int c, v, i, pixels, index;
- if (max > state->len)
- max = state->len;
+ if (max > (size_t)state->len)
+ max = (size_t)state->len;
ep = p + max;