Explorar o código

emulated_console: Amend cast in SetTouch()

id is an int value, not a u32.
Lioncash %!s(int64=3) %!d(string=hai) anos
pai
achega
7bf4b45349
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hid/emulated_console.cpp

+ 1 - 1
src/core/hid/emulated_console.cpp

@@ -199,7 +199,7 @@ void EmulatedConsole::SetTouch(const Common::Input::CallbackStatus& callback, st
 
 
     if (is_new_input) {
     if (is_new_input) {
         touch_value.pressed.value = true;
         touch_value.pressed.value = true;
-        touch_value.id = static_cast<u32>(index);
+        touch_value.id = static_cast<int>(index);
     }
     }
 
 
     touch_value.x = touch_input.x;
     touch_value.x = touch_input.x;