From 786bca67b6d014a4585bd8a04619f835e58fafaa Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Thu, 6 Oct 2016 20:19:25 +0900
Subject: [PATCH 33/33] KeyboardInputDevice.cpp: Fix int-in-bool-context
warning
---
src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp b/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp
index c9fa64f..8571770 100644
a
|
b
|
KeyboardDevice::_ControlThread()
|
340 | 340 | if (isKeyDown) |
341 | 341 | states[(keycode) >> 3] |= (1 << (7 - (keycode & 0x7))); |
342 | 342 | else |
343 | | states[(keycode) >> 3] &= (!(1 << (7 - (keycode & 0x7)))); |
| 343 | states[(keycode) >> 3] &= (~(1 << (7 - (keycode & 0x7)))); |
344 | 344 | } |
345 | 345 | |
346 | 346 | if (isKeyDown && keycode == 0x34 // DELETE KEY |