summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-03-21 00:45:07 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-03-21 00:45:07 +0100
commit5c09e54c88f19be71ea8fca9a6f6793a0250bab3 (patch)
treef826dd4afdeda815add9dcc5b29d9b05a226fd62 /crawl-ref/source/format.cc
parent0972c6cb91aa98ae775ac159a07a062027a3904b (diff)
downloadcrawl-ref-5c09e54c88f19be71ea8fca9a6f6793a0250bab3.tar.gz
crawl-ref-5c09e54c88f19be71ea8fca9a6f6793a0250bab3.zip
Fix compilation on 64 bit.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 536bf2d791..c4a32949bc 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -52,7 +52,7 @@ void display_tagged_block(const std::string &s)
int x = wherex();
int y = wherey();
const unsigned int max_y = cgetsize(GOTO_CRT).y;
- const int size = std::min(lines.size(), max_y - y + 1);
+ const int size = std::min<unsigned int>(lines.size(), max_y - y + 1);
for (int i = 0; i < size; ++i)
{
cgotoxy(x, y);