Mesa (master): llvmpipe: (trivial) add parantheses in (!x == y) expression
Roland Scheidegger
sroland at kemper.freedesktop.org
Mon May 25 20:25:16 UTC 2015
Module: Mesa
Branch: master
Commit: 6a111e54d7578abee6bce4a75ce1399ed369ab5f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a111e54d7578abee6bce4a75ce1399ed369ab5f
Author: Roland Scheidegger <sroland at vmware.com>
Date: Mon May 25 22:24:05 2015 +0200
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 at lists.freedesktop.org>
---
src/gallium/drivers/llvmpipe/lp_query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c
index 4f8bab6..fc59367 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;
}
More information about the mesa-commit
mailing list