summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-03-04 10:21:36 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-03-05 10:47:03 +0900
commit21a90cc49c6e71da9d52451015297afe42cd8b6e (patch)
tree8df8fb3b899da39ecacdef3f82aef7f962593d75
parent83119f05c435cb97e0b4efbbf3ebba4f47ccfe91 (diff)
downloadmpv-21a90cc49c6e71da9d52451015297afe42cd8b6e.tar.bz2
mpv-21a90cc49c6e71da9d52451015297afe42cd8b6e.tar.xz
cocoa: silence -Wlogical-op-parentheses
(cherry picked from commit 3c3f9a8042b9d681481eb1469dc1514833452f29)
-rw-r--r--osdep/macosx_events.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m
index 026f3777d1..23a3e02355 100644
--- a/osdep/macosx_events.m
+++ b/osdep/macosx_events.m
@@ -376,7 +376,7 @@ void cocoa_set_input_context(struct input_ctx *input_context)
if (cocoaModifiers & NSControlKeyMask)
mask |= MP_KEY_MODIFIER_CTRL;
if (LeftAltPressed(cocoaModifiers) ||
- RightAltPressed(cocoaModifiers) && ![self useAltGr])
+ (RightAltPressed(cocoaModifiers) && ![self useAltGr]))
mask |= MP_KEY_MODIFIER_ALT;
if (cocoaModifiers & NSCommandKeyMask)
mask |= MP_KEY_MODIFIER_META;