From: Martin Peres Date: Fri, 5 Jun 2015 12:19:01 +0000 (+0300) Subject: softpipe/query: force parenthesis around a logical not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8614b9e489e65bb672ab16053d30ce8708856214;p=mesa.git softpipe/query: force parenthesis around a logical not This makes GCC5 happy. Reviewed-by: Brian Paul Signed-off-by: Martin Peres --- diff --git a/src/gallium/drivers/softpipe/sp_query.c b/src/gallium/drivers/softpipe/sp_query.c index e77387082bc..76105b4c0ec 100644 --- a/src/gallium/drivers/softpipe/sp_query.c +++ b/src/gallium/drivers/softpipe/sp_query.c @@ -277,7 +277,7 @@ softpipe_check_render_cond(struct softpipe_context *sp) b = pipe->get_query_result(pipe, sp->render_cond_query, wait, (void*)&result); if (b) - return (!result == sp->render_cond_cond); + return (!result) == sp->render_cond_cond; else return TRUE; }