]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix a compiler warning from MSVC
authorMikko Rasa <tdb@tdb.fi>
Wed, 4 Jan 2023 14:22:58 +0000 (16:22 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 4 Jan 2023 14:26:47 +0000 (16:26 +0200)
source/input/device.cpp

index b615cb7fb92fe870ede98effec9ed505db4ed848..22429a0371bfcb9062e7c96d478e4a7c1d3a579f 100644 (file)
@@ -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<bool>(buttons[btn]))
        {
                buttons[btn] = state;