From 2841504fa009aad2dd57c9c5f80a85e569f38155 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 3 Aug 2019 21:14:19 +0100 Subject: [PATCH] fix a possible int overflow --- libvips/resample/shrinkv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/resample/shrinkv.c b/libvips/resample/shrinkv.c index 97ef418d..cc4da1ef 100644 --- a/libvips/resample/shrinkv.c +++ b/libvips/resample/shrinkv.c @@ -243,7 +243,7 @@ vips_shrinkv_write_line( VipsShrinkv *shrink, VipsShrinkvSequence *seq, case VIPS_FORMAT_SHORT: IAVG( short, int ); break; case VIPS_FORMAT_UINT: - IAVG( unsigned int, int ); break; + IAVG( unsigned int, guint64 ); break; case VIPS_FORMAT_INT: IAVG( int, gint64 ); break; case VIPS_FORMAT_FLOAT: