From 6691f5b3fee1c1216df866bfef2165ecd7353708 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Sat, 16 Sep 2006 08:41:41 +0200 Subject: [PATCH] IMAGESIM: bugfix in signatures computation --- images/sig-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/sig-init.c b/images/sig-init.c index 64b7664b..d829930e 100644 --- a/images/sig-init.c +++ b/images/sig-init.c @@ -280,7 +280,7 @@ image_sig_finish(struct image_sig_data *data, struct image_signature *sig) { struct image_sig_region *r = data->regions + i; wa -= sig->reg[i].wa = CLAMP(r->count * 128 / data->blocks_count, 1, (int)(wa - i)); - wb -= sig->reg[i].wb = CLAMP(r->w_sum * 128 / w_total, 1, (int)(wa - i)); + wb -= sig->reg[i].wb = CLAMP(r->w_sum * 128 / w_total, 1, (int)(wb - i)); } sig->reg[0].wa = wa; sig->reg[0].wb = wb; -- 2.39.5