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
Compile fixes for amd64 according to Ian
[ypp-sc-tools.main.git]
/
pctb
/
structure.c
diff --git
a/pctb/structure.c
b/pctb/structure.c
index 1ed0710914b97827dff0cf0ca2c95e8b2e426c57..5309489038bce03f9b3d1646d4357222a5d85e44 100644
(file)
--- a/
pctb/structure.c
+++ b/
pctb/structure.c
@@
-688,13
+688,11
@@
void find_islandname(RgbImage *ri) {
islandnamer.br.x= p.x;
identify_rgbimage(ri, islandnamer, archisland, "island");
islandnamer.br.x= p.x;
identify_rgbimage(ri, islandnamer, archisland, "island");
-
- assert(!"not vessel");
}
char *delim= strstr(archisland," - ");
assert(delim);
}
char *delim= strstr(archisland," - ");
assert(delim);
- archipelago= masprintf("%.*s",
delim-archisland
, archisland);
+ archipelago= masprintf("%.*s",
(int)(delim-archisland)
, archisland);
island= masprintf("%s", delim+3);
free(ri);
island= masprintf("%s", delim+3);
free(ri);