X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=pctb%2Fpages.c;fp=pctb%2Fpages.c;h=f9ca6e05409874b37a3b0b27e38f852d396a9e99;hp=b3ddceba81f921c2dc1d46661053e77da3215680;hb=f23577a2c5659be8d42d87da85a6a62beb80cd3c;hpb=cec9583fe97a74a44625e63cfa22318db2699ee4 diff --git a/pctb/pages.c b/pctb/pages.c index b3ddceb..f9ca6e0 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -621,7 +621,7 @@ static void findypp_recurse(int depth, int targetdepth, Window w) { static const char prefix[]= "Puzzle Pirates - "; static const char onthe[]= " on the "; static const char suffix[]= " ocean"; -#define S(x) (sizeof((x))-1) +#define S(x) ((int)sizeof((x))-1) debugfind("FINDYPP %d/%d screen %d %*s %lx", depth,targetdepth,screen, @@ -684,7 +684,7 @@ static void findypp_recurse(int depth, int targetdepth, Window w) { REQUIRE( !memcmp(spc1, onthe, S(onthe)) ); #define ASSIGN(what, start, end) \ - what= masprintf("%.*s", (end)-(start), start); \ + what= masprintf("%.*s", (int)((end)-(start)), start); \ if (o_##what) REQUIRE( !strcasecmp(o_##what, what) ); \ else