diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-25 23:39:48 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-05-26 00:23:02 +0200 |
commit | 2ea2ce9d9897afa31420d5b998d1162828d0ee2e (patch) | |
tree | 54afd85220047ecf5aa67b19ad52aedf6b2ac252 /crawl-ref/source/database.cc | |
parent | 6de4c69b049eb22ebba4eaf455e94ac9671b7f22 (diff) | |
download | crawl-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/database.cc')
-rw-r--r-- | crawl-ref/source/database.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 140329aa86..a6f5013bc7 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -241,7 +241,7 @@ bool TextDB::_needs_update() const { std::string full_input_path = _directory + _input_files[i]; full_input_path = datafile_path(full_input_path, !_parent); - long mtime = file_modtime(full_input_path); + time_t mtime = file_modtime(full_input_path); if (mtime) no_files = false; char buf[20]; @@ -295,7 +295,7 @@ void TextDB::_regenerate_db() std::string full_input_path = _directory + _input_files[i]; full_input_path = datafile_path(full_input_path, !_parent); char buf[20]; - long mtime = file_modtime(full_input_path); + time_t mtime = file_modtime(full_input_path); snprintf(buf, sizeof(buf), ":%ld", mtime); ts += buf; if (mtime || !_parent) // english is mandatory |