X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2Fpages.c;h=d93beff192ad340c1607e629fb42a45692c46653;hp=482c959c24261cf541ca0ea4e99b63ddf7e51e4e;hb=62c6511084ac851f374aaeb68b4d1d9f117690a1;hpb=ad71c2a5bfcc29289b2f94324544c3d1a186751b diff --git a/pctb/pages.c b/pctb/pages.c index 482c959..d93beff 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -628,7 +628,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, @@ -691,7 +691,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