chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use tmpfile trick for pixmaps too [-iwj]
[ypp-sc-tools.main.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index b3ddceba81f921c2dc1d46661053e77da3215680..f9ca6e05409874b37a3b0b27e38f852d396a9e99 100644
(file)
--- 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";
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,
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) \
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
if (o_##what) REQUIRE( !strcasecmp(o_##what, what) ); \
else