gallium/util: silence clang warning in blitter code
authorBrian Paul <brianp@vmware.com>
Thu, 8 Feb 2018 17:00:21 +0000 (10:00 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Feb 2018 17:27:31 +0000 (10:27 -0700)
Silence "warning: comparison of constant 4294967295 with expression
of type 'ubyte'".

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_blitter.c

index 63d1307b83c7ca60ee88f7ae4c500faaa988551d..98c3ac5df3af330164d28628196bf653f6d28075 100644 (file)
@@ -659,7 +659,7 @@ void util_blitter_restore_fragment_states(struct blitter_context *blitter)
 
 static void blitter_check_saved_fb_state(MAYBE_UNUSED struct blitter_context_priv *ctx)
 {
-   assert(ctx->base.saved_fb_state.nr_cbufs != ~0u);
+   assert(ctx->base.saved_fb_state.nr_cbufs != (ubyte) ~0);
 }
 
 static void blitter_disable_render_cond(struct blitter_context_priv *ctx)