]> mj.ucw.cz Git - libucw.git/commitdiff
int vs uns bugfix
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Sat, 16 Sep 2006 08:46:24 +0000 (10:46 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Sat, 16 Sep 2006 08:46:24 +0000 (10:46 +0200)
images/sig-init.c

index c04c4691d69b7e0e5298e512f66196c6db471fee..e1ff554d9b8dfa5ed521e6ab6c1fc65a4ad7e91e 100644 (file)
@@ -193,7 +193,7 @@ image_sig_finish(struct image_sig_data *data, struct image_signature *sig)
   /* For each region */
   u64 w_total = 0;
   uns w_border = MIN(data->cols, data->rows) * image_sig_border_size;
-  int w_mul = w_border ? image_sig_border_bonus * 256 / w_border : 0;
+  int w_mul = w_border ? image_sig_border_bonus * 256 / (int)w_border : 0;
   for (uns i = 0; i < sig->len; i++)
     {
       struct image_sig_region *r = data->regions + i;