diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-06-27 12:55:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-27 12:55:18 -0400 |
commit | b2979eba236dcda7928079e8102b521a0c8f57aa (patch) | |
tree | 9b70059351f09e9099ffca95c0603d95fe3f6c1d /quantum/quantum_keycodes.h | |
parent | 98391605cabcaaca9c28d3805fe5effb2f40ddc3 (diff) | |
download | qmk_firmware-b2979eba236dcda7928079e8102b521a0c8f57aa.tar.gz qmk_firmware-b2979eba236dcda7928079e8102b521a0c8f57aa.zip |
Adds parenthesis where they might be needed
Addresses #764
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r-- | quantum/quantum_keycodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index c34ecafa51..6038e31c46 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h @@ -550,13 +550,13 @@ enum quantum_keycodes { #define OSL(layer) (layer | QK_ONE_SHOT_LAYER) // One-shot mod -#define OSM(mod) (mod | QK_ONE_SHOT_MOD) +#define OSM(mod) ((mod) | QK_ONE_SHOT_MOD) // Layer tap-toggle #define TT(layer) (layer | QK_LAYER_TAP_TOGGLE) // M-od, T-ap - 256 keycode max -#define MT(mod, kc) (kc | QK_MOD_TAP | ((mod & 0x1F) << 8)) +#define MT(mod, kc) (kc | QK_MOD_TAP | (((mod) & 0x1F) << 8)) #define CTL_T(kc) MT(MOD_LCTL, kc) #define LCTL_T(kc) MT(MOD_LCTL, kc) |