diff options
Diffstat (limited to 'tmk_core/common/action.c')
-rw-r--r-- | tmk_core/common/action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index bb4e66c9c..3991a8a9e 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
@@ -406,8 +406,8 @@ void process_action(keyrecord_t *record, action_t action) | |||
406 | /* Default Layer Bitwise Operation */ | 406 | /* Default Layer Bitwise Operation */ |
407 | if (!event.pressed) { | 407 | if (!event.pressed) { |
408 | uint8_t shift = action.layer_bitop.part*4; | 408 | uint8_t shift = action.layer_bitop.part*4; |
409 | uint32_t bits = ((uint32_t)action.layer_bitop.bits)<<shift; | 409 | layer_state_t bits = ((layer_state_t)action.layer_bitop.bits)<<shift; |
410 | uint32_t mask = (action.layer_bitop.xbit) ? ~(((uint32_t)0xf)<<shift) : 0; | 410 | layer_state_t mask = (action.layer_bitop.xbit) ? ~(((layer_state_t)0xf)<<shift) : 0; |
411 | switch (action.layer_bitop.op) { | 411 | switch (action.layer_bitop.op) { |
412 | case OP_BIT_AND: default_layer_and(bits | mask); break; | 412 | case OP_BIT_AND: default_layer_and(bits | mask); break; |
413 | case OP_BIT_OR: default_layer_or(bits | mask); break; | 413 | case OP_BIT_OR: default_layer_or(bits | mask); break; |
@@ -420,8 +420,8 @@ void process_action(keyrecord_t *record, action_t action) | |||
420 | if (event.pressed ? (action.layer_bitop.on & ON_PRESS) : | 420 | if (event.pressed ? (action.layer_bitop.on & ON_PRESS) : |
421 | (action.layer_bitop.on & ON_RELEASE)) { | 421 | (action.layer_bitop.on & ON_RELEASE)) { |
422 | uint8_t shift = action.layer_bitop.part*4; | 422 | uint8_t shift = action.layer_bitop.part*4; |
423 | uint32_t bits = ((uint32_t)action.layer_bitop.bits)<<shift; | 423 | layer_state_t bits = ((layer_state_t)action.layer_bitop.bits)<<shift; |
424 | uint32_t mask = (action.layer_bitop.xbit) ? ~(((uint32_t)0xf)<<shift) : 0; | 424 | layer_state_t mask = (action.layer_bitop.xbit) ? ~(((layer_state_t)0xf)<<shift) : 0; |
425 | switch (action.layer_bitop.op) { | 425 | switch (action.layer_bitop.op) { |
426 | case OP_BIT_AND: layer_and(bits | mask); break; | 426 | case OP_BIT_AND: layer_and(bits | mask); break; |
427 | case OP_BIT_OR: layer_or(bits | mask); break; | 427 | case OP_BIT_OR: layer_or(bits | mask); break; |