llvmpipe: (trivial) add parantheses in (!x == y) expression
authorRoland Scheidegger <sroland@vmware.com>
Mon, 25 May 2015 20:24:05 +0000 (22:24 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 25 May 2015 20:24:42 +0000 (22:24 +0200)
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>
src/gallium/drivers/llvmpipe/lp_query.c

index 4f8bab62e7b4f64e9947be78db0f8e4b05d10fe4..fc5936706712f745f3ca25c3f193f6e878557822 100644 (file)
@@ -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;
 }