From 931fe8b25d5cdf9fe8c214fcab69278e225eca3e Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Sat, 25 Nov 2006 22:11:15 +0100 Subject: [PATCH] 64bit bug in image signatures --- images/sig-init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/sig-init.c b/images/sig-init.c index 8a3b5ea2..57eaa71b 100644 --- a/images/sig-init.c +++ b/images/sig-init.c @@ -104,14 +104,14 @@ image_sig_preprocess(struct image_sig_data *data) } for (; x < 4; x++) { - *tp = tp[-square_cols]; + *tp = tp[-(int)square_cols]; tp++; } } for (; y < 4; y++) for (x = 0; x < 4; x++) { - *tp = tp[-square_rows * 4]; + *tp = tp[-(int)square_rows * 4]; tp++; } block->area = square_cols * square_rows; -- 2.39.2