diff options
author | Alexandros Frantzis <alexandros.frantzis@collabora.com> | 2017-11-17 13:39:06 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-24 14:02:19 +0200 |
commit | 0343c6ac69ac8bd88a625e2429e87a8db86a04dc (patch) | |
tree | ca0224d943a15636ec6d00a913ff17617c4cf294 /ivi-shell | |
parent | 71c4f70e08faad6002ec8fe8cd1c7930bee8373b (diff) |
ivi-shell: Fix incorrect use of logical instead of bitwise operator
Fix the code to use the correct bitwise AND operator '&', instead of the
currently used logical AND operator '&&', to check the value of a bit
flag in a bit mask.
This problem was reported as a warning when building with clang.
Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-shell')
-rw-r--r-- | ivi-shell/ivi-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 87adde32..394179b8 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -617,7 +617,7 @@ commit_changes(struct ivi_layout *layout) * the weston_view below this ivi_view. Otherwise content * of this ivi_view will stay visible. */ - if ((ivilayer->prop.event_mask | ivisurf->prop.event_mask) && + if ((ivilayer->prop.event_mask | ivisurf->prop.event_mask) & IVI_NOTIFICATION_VISIBILITY) weston_view_damage_below(ivi_view->view); |