From: Mikko Rasa Date: Wed, 4 Jan 2023 14:22:58 +0000 (+0200) Subject: Fix a compiler warning from MSVC X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3bb7bd5d99a71420b1dfa8d433f4f274bbe280fa;p=libs%2Fgui.git Fix a compiler warning from MSVC --- 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;