summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
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/files.h
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/files.h')
-rw-r--r--crawl-ref/source/files.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index 99f919a6e3..829fd8bb28 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -26,7 +26,7 @@ bool file_exists(const std::string &name);
bool dir_exists(const std::string &dir);
bool is_absolute_path(const std::string &path);
void assert_read_safe_path(const std::string &path) throw (std::string);
-unsigned long file_size(FILE *handle);
+off_t file_size(FILE *handle);
std::vector<std::string> get_dir_files(const std::string &dir);
std::vector<std::string> get_dir_files_ext(const std::string &dir,