From ae20181e6f84d4ed5323b30a4da1ba9d32bb779b Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 30 Jun 2025 14:02:10 +0200 Subject: [PATCH] fix Input: un parellet de warnings --- source/input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/input.cpp b/source/input.cpp index 99b99ec..eea194e 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -437,7 +437,7 @@ void Input::update() // --- TECLADO --- const bool *key_states = SDL_GetKeyboardState(nullptr); - for (int i = 0; i < key_bindings_.size(); ++i) + for (size_t i = 0; i < key_bindings_.size(); ++i) { bool key_is_down_now = key_states[key_bindings_[i].scancode]; @@ -449,7 +449,7 @@ void Input::update() // --- MANDOS --- for (int c = 0; c < num_gamepads_; ++c) { - for (int i = 0; i < controller_bindings_[c].size(); ++i) + for (size_t i = 0; i < controller_bindings_[c].size(); ++i) { bool button_is_down_now = SDL_GetGamepadButton(connected_controllers_.at(c), controller_bindings_.at(c).at(i).button) != 0;