diff options
author | John Fultz <jfultz@wolfram.com> | 2023-07-19 18:07:39 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2023-07-19 22:38:25 -0500 |
commit | d302abb430f5cb75e7373197c91e269fdbaf2e61 (patch) | |
tree | 0f52f3cfa5feff989603d81c1c8b4af147cf08cb /sim.cpp | |
parent | 490072ac8b3de65f3ad6f00d9d6de9d64b049823 (diff) |
Fix integer size compiler warnings.
Diffstat (limited to 'sim.cpp')
-rw-r--r-- | sim.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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()); } //////////// |