summaryrefslogtreecommitdiff
path: root/bag.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-07-21 02:06:00 -0500
committerJohn Fultz <jfultz@wolfram.com>2019-07-21 02:06:00 -0500
commitb67605814738d17484e508d037b8b1f09c27cab6 (patch)
tree9584efaa02ac17a1e0dd91b9b36797441c3cf593 /bag.cpp
parent592be355923ea0fae3630af6fe3ba8f11523d9e4 (diff)
Visual C++ compiler warning fixes.
Mostly signed/unsigned/size_t mismatches, except for one case treating a bool as an integer.
Diffstat (limited to 'bag.cpp')
-rw-r--r--bag.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bag.cpp b/bag.cpp
index 5a08a6f..7aa1622 100644
--- a/bag.cpp
+++ b/bag.cpp
@@ -101,7 +101,7 @@ void Bag::exch(const Move &move, Rack &rack)
Letter Bag::pluck()
{
- return erase(DataManager::self()->randomInteger(0, m_tiles.size() - 1));
+ return erase(DataManager::self()->randomInteger(0, (int)m_tiles.size() - 1));
}
bool Bag::removeLetters(const LetterString &letters)