diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index a993edc19..8cd5cd0fe 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -79,7 +79,7 @@ int getTouchID(DWORD id) } for (int i = 0; i < maxTouchPoints; ++i) { - if (touchIDs[i] == -1) + if (touchIDs[i] == static_cast(-1)) { touchIDs[i] = id; return i;