summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-25 23:39:48 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-05-26 00:23:02 +0200
commit2ea2ce9d9897afa31420d5b998d1162828d0ee2e (patch)
tree54afd85220047ecf5aa67b19ad52aedf6b2ac252 /crawl-ref/source/state.cc
parent6de4c69b049eb22ebba4eaf455e94ac9671b7f22 (diff)
downloadcrawl-ref-2ea2ce9d9897afa31420d5b998d1162828d0ee2e.tar.gz
crawl-ref-2ea2ce9d9897afa31420d5b998d1162828d0ee2e.zip
Kill some longs.
In portable code, basically every use of long or %ld/%lu/%lx is a bug. A legitimate use in Crawl is the bit array: storing it in-memory should be preferably done a word at a time.
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r--crawl-ref/source/state.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc
index 065e7943e4..64e6d15d97 100644
--- a/crawl-ref/source/state.cc
+++ b/crawl-ref/source/state.cc
@@ -465,8 +465,8 @@ void game_state::dump()
"arena_suspended: %d\n",
seen_hups, map_stat_gen, type, arena_suspended);
if (last_winch)
- fprintf(stderr, "Last resize was %ld seconds ago.\n",
- (long int)(time(0) - last_winch));
+ fprintf(stderr, "Last resize was %"PRId64" seconds ago.\n",
+ (int64_t)(time(0) - last_winch));
fprintf(stderr, "\n");