diff options
Diffstat (limited to 'apps/plugins/zxbox/spkey.c')
-rw-r--r-- | apps/plugins/zxbox/spkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/zxbox/spkey.c b/apps/plugins/zxbox/spkey.c index a21aed6af2..77427e8015 100644 --- a/apps/plugins/zxbox/spkey.c +++ b/apps/plugins/zxbox/spkey.c | |||
@@ -85,7 +85,7 @@ int spkb_state_changed; | |||
85 | 85 | ||
86 | #define SKE {0, 0, 0, 0, 0, 0, 0, 0} | 86 | #define SKE {0, 0, 0, 0, 0, 0, 0, 0} |
87 | 87 | ||
88 | #define SKP(x) (1 << x) | 88 | #define SKP(x) BIT_N(x) |
89 | 89 | ||
90 | #define SKN0(x) {SKP(x), 0, 0, 0, 0, 0, 0, 0} | 90 | #define SKN0(x) {SKP(x), 0, 0, 0, 0, 0, 0, 0} |
91 | #define SKN1(x) {0, SKP(x), 0, 0, 0, 0, 0, 0} | 91 | #define SKN1(x) {0, SKP(x), 0, 0, 0, 0, 0, 0} |
@@ -617,7 +617,7 @@ static void copy_basekeys(struct spbasekey *addk) | |||
617 | static unsigned transform_shift(int modif) | 617 | static unsigned transform_shift(int modif) |
618 | { | 618 | { |
619 | if(!modif) return 0; | 619 | if(!modif) return 0; |
620 | else return (1 << (modif - 1)); | 620 | else return BIT_N(modif - 1); |
621 | } | 621 | } |
622 | 622 | ||
623 | 623 | ||