summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-02-05 19:22:46 +0100
committerBardur Arantsson <bardur@scientician.net>2016-02-05 19:22:46 +0100
commit814b55d60ed50ae3fe6b5ca00129e76f3988b696 (patch)
tree4db30fe57bc206d4999f38c6b9bc1b4a52dba860 /src
parent959f8c09f32e6b431bc4f7af8d1a5c296cefdafe (diff)
Use explicit cast to avoid warnings
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index efbd4e38..b7863f1a 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -3456,7 +3456,7 @@ int ask_menu(cptr ask, const std::vector<std::string> &items)
{
int ret = -1, i, start = 0;
char c;
- int size = items.size(); // Convert to int to avoid warnings
+ int size = static_cast<int>(items.size()); // Convert to int to avoid warnings
/* Enter "icky" mode */
character_icky = TRUE;