X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fsig-init.c;h=3cb8cab008cb319f3b900036261baab42e90bda7;hb=f20fee710189d2280e8528520dc9c49f7da2ba59;hp=8a3b5ea2ab924861b81142058042fbe0dc9800c7;hpb=f079adbc69c1521039ee8c6b3aaac5eb209889cd;p=libucw.git diff --git a/images/sig-init.c b/images/sig-init.c index 8a3b5ea2..3cb8cab0 100644 --- a/images/sig-init.c +++ b/images/sig-init.c @@ -9,10 +9,9 @@ #undef LOCAL_DEBUG -#include "sherlock/sherlock.h" +#include "lib/lib.h" #include "lib/fastbuf.h" #include "lib/conf.h" -#include "lib/math.h" #include "images/images.h" #include "images/math.h" #include "images/error.h" @@ -20,6 +19,7 @@ #include "images/signature.h" #include +#include int image_sig_init(struct image_context *ctx, struct image_sig_data *data, struct image *image) @@ -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;