summaryrefslogtreecommitdiffstats
path: root/quantum/command.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-07-03 00:19:52 -0700
committerGitHub <noreply@github.com>2021-07-03 00:19:52 -0700
commit8da8aabbe5796232c0f17f849badd455d42b0277 (patch)
tree7cec61a96672644bba25c97fc8a1a9dd8b75d58d /quantum/command.c
parent03807c2c6e470a3046c1ff40ac7ab74f76b94f74 (diff)
Improve layer mask handling (#13065)
Diffstat (limited to 'quantum/command.c')
-rw-r--r--quantum/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/command.c b/quantum/command.c
index 34c4b36b1c..3a7dc0f8ca 100644
--- a/quantum/command.c
+++ b/quantum/command.c
@@ -781,6 +781,6 @@ uint8_t numkey2num(uint8_t code) {
static void switch_default_layer(uint8_t layer) {
xprintf("L%d\n", layer);
- default_layer_set(1UL << layer);
+ default_layer_set((layer_state_t)1 << layer);
clear_keyboard();
}