mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Fix a build failure on x32 (time_t printfs).
As that architecture has 64-bit time_t but only 32-bit longs, printf format causes a warning. Enter -Werror...
This commit is contained in:

committed by
Simon Tatham

parent
f1e68fb516
commit
ffe0aa6a11
@ -2562,7 +2562,7 @@ int main(int argc, const char *argv[])
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
s = new_game(NULL, p, desc);
|
s = new_game(NULL, p, desc);
|
||||||
printf("%s:%s (seed %ld)\n", id, desc, seed);
|
printf("%s:%s (seed %ld)\n", id, desc, (long)seed);
|
||||||
if (aux) {
|
if (aux) {
|
||||||
/* We just generated this ourself. */
|
/* We just generated this ourself. */
|
||||||
if (verbose || print) {
|
if (verbose || print) {
|
||||||
|
@ -2393,7 +2393,7 @@ int main(int argc, const char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(newseed, "%lu", time(NULL));
|
sprintf(newseed, "%lu", (unsigned long) time(NULL));
|
||||||
seedstr = dupstr(newseed);
|
seedstr = dupstr(newseed);
|
||||||
|
|
||||||
if (id || !stdin_desc) {
|
if (id || !stdin_desc) {
|
||||||
|
Reference in New Issue
Block a user