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>
This commit is contained in:
Alexandros Frantzis 2017-11-17 13:39:06 +02:00 committed by Pekka Paalanen
parent 71c4f70e08
commit 0343c6ac69
1 changed files with 1 additions and 1 deletions

View File

@ -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);