diff options
| author | tmk <nobody@nowhere> | 2013-02-25 17:00:35 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-02-25 17:00:35 +0900 |
| commit | 1720cf34caa518a2cf85f286d1ca077ebe1a1451 (patch) | |
| tree | 2e0df158b0aa2055d60553bfbc9d9497e0fb7772 /common/keyboard.c | |
| parent | 7a31451a077a55e1ad97cf8b31a111c7cd311a4d (diff) | |
| download | qmk_firmware-1720cf34caa518a2cf85f286d1ca077ebe1a1451.tar.gz qmk_firmware-1720cf34caa518a2cf85f286d1ca077ebe1a1451.zip | |
Fix bit shift which is beyond int size(16bit)
Diffstat (limited to 'common/keyboard.c')
| -rw-r--r-- | common/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index e4bc3dc8c..432ea8934 100644 --- a/common/keyboard.c +++ b/common/keyboard.c | |||
| @@ -86,7 +86,7 @@ void keyboard_task(void) | |||
| 86 | if (matrix_change & ((matrix_row_t)1<<c)) { | 86 | if (matrix_change & ((matrix_row_t)1<<c)) { |
| 87 | action_exec((keyevent_t){ | 87 | action_exec((keyevent_t){ |
| 88 | .key = (key_t){ .row = r, .col = c }, | 88 | .key = (key_t){ .row = r, .col = c }, |
| 89 | .pressed = (matrix_row & (1<<c)), | 89 | .pressed = (matrix_row & ((matrix_row_t)1<<c)), |
| 90 | .time = (timer_read() | 1) /* time should not be 0 */ | 90 | .time = (timer_read() | 1) /* time should not be 0 */ |
| 91 | }); | 91 | }); |
| 92 | // record a processed key | 92 | // record a processed key |
