diff options
author | Roland Scheidegger <sroland@vmware.com> | 2015-05-25 22:24:05 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-05-27 11:45:43 +0100 |
commit | 34ff020aeac214976bdc152dc5009be9534c6ed7 (patch) | |
tree | 378ef7e9abfac3ce7ad0919a2df5231fa5be024f | |
parent | 8fc109160efa8ff018081f3331dd4215a6e66a9f (diff) |
llvmpipe: (trivial) add parantheses in (!x == y) expression
Apparently some compilers think we probably wanted to do !(x == y) instead
and issue a warning, so just shut it up... No functional change, obviously.
Cc: <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 6a111e54d7578abee6bce4a75ce1399ed369ab5f)
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c index 4f8bab62e7b..fc593670671 100644 --- a/src/gallium/drivers/llvmpipe/lp_query.c +++ b/src/gallium/drivers/llvmpipe/lp_query.c @@ -315,7 +315,7 @@ llvmpipe_check_render_cond(struct llvmpipe_context *lp) b = pipe->get_query_result(pipe, lp->render_cond_query, wait, (void*)&result); if (b) - return (!result == lp->render_cond_cond); + return ((!result) == lp->render_cond_cond); else return TRUE; } |