From 3bb7bd5d99a71420b1dfa8d433f4f274bbe280fa Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 4 Jan 2023 16:22:58 +0200 Subject: [PATCH] Fix a compiler warning from MSVC --- source/input/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/input/device.cpp b/source/input/device.cpp index b615cb7..22429a0 100644 --- a/source/input/device.cpp +++ b/source/input/device.cpp @@ -54,7 +54,7 @@ void Device::set_button_state(unsigned btn, bool state, bool event) if(btn>=buttons.size()) buttons.resize(btn+1, false); - if(state!=buttons[btn]) + if(state!=static_cast(buttons[btn])) { buttons[btn] = state; -- 2.45.2