summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index c5751a27eb..52fa9094d1 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -395,7 +395,7 @@ std::string number_in_words(unsigned num, int pow)
return number_in_words(num, 0) + pow_in_words(pow);
unsigned thousands = num % 1000, rest = num / 1000;
- if (!rest and !thousands)
+ if (!rest && !thousands)
return ("zero");
return join_strings((rest? number_in_words(rest, pow + 3) : ""),