summaryrefslogtreecommitdiff
path: root/sim.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2023-07-19 18:07:39 -0500
committerJohn Fultz <jfultz@wolfram.com>2023-07-19 22:38:25 -0500
commitd302abb430f5cb75e7373197c91e269fdbaf2e61 (patch)
tree0f52f3cfa5feff989603d81c1c8b4af147cf08cb /sim.cpp
parent490072ac8b3de65f3ad6f00d9d6de9d64b049823 (diff)
Fix integer size compiler warnings.
Diffstat (limited to 'sim.cpp')
-rw-r--r--sim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim.cpp b/sim.cpp
index eb8461b..baede1f 100644
--- a/sim.cpp
+++ b/sim.cpp
@@ -283,7 +283,7 @@ void Simulator::simulate(int plies)
SimmedMoveConstants constants;
constants.game = m_originalGame;
constants.startPlayerId = m_originalGame.currentPosition().currentPlayer().id();
- constants.playerCount = m_originalGame.currentPosition().players().size();
+ constants.playerCount = int(m_originalGame.currentPosition().players().size());
// level one's first move is the zeroth ply (the candidate)
constants.decimalTurns = (plies % constants.playerCount);
// also one-indexed
@@ -580,14 +580,14 @@ int Simulator::numLevels() const
{
if (m_simmedMoves.empty())
return 0;
- return m_simmedMoves.front().levels.size();
+ return int(m_simmedMoves.front().levels.size());
}
int Simulator::numPlayersAtLevel(int levelIndex) const
{
if (m_simmedMoves.empty())
return 0;
- return m_simmedMoves.front().levels[levelIndex].statistics.size();
+ return int(m_simmedMoves.front().levels[levelIndex].statistics.size());
}
////////////