瀏覽代碼

Fix bit shift which is beyond int size(16bit)

tags/v1.9
tmk 11 年之前
父節點
當前提交
1720cf34ca
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      common/keyboard.c

+ 1
- 1
common/keyboard.c 查看文件

@@ -86,7 +86,7 @@ void keyboard_task(void)
if (matrix_change & ((matrix_row_t)1<<c)) {
action_exec((keyevent_t){
.key = (key_t){ .row = r, .col = c },
.pressed = (matrix_row & (1<<c)),
.pressed = (matrix_row & ((matrix_row_t)1<<c)),
.time = (timer_read() | 1) /* time should not be 0 */
});
// record a processed key

Loading…
取消
儲存