Skip to content

Commit 4123ccd

Browse files
committed
Fix compiler warning
1 parent ab285dd commit 4123ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/control/input_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ InputManager::pop_user()
159159
if (m_controllers.size() <= 1)
160160
throw std::runtime_error("Attempt to pop the first player's controller");
161161

162-
on_player_removed(m_controllers.size() - 1);
162+
on_player_removed(static_cast<int>(m_controllers.size()) - 1);
163163

164164
m_controllers.pop_back();
165165
}

0 commit comments

Comments
 (0)