]> mj.ucw.cz Git - libucw.git/commitdiff
64bit bug in image signatures
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Sat, 25 Nov 2006 21:11:15 +0000 (22:11 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Sat, 25 Nov 2006 21:11:15 +0000 (22:11 +0100)
images/sig-init.c

index 8a3b5ea2ab924861b81142058042fbe0dc9800c7..57eaa71b6b64f480b2d928408eac3ab91b45b90d 100644 (file)
@@ -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;