summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-02-08 10:00:21 -0700
committerBrian Paul <[email protected]>2018-02-08 10:27:31 -0700
commit11e92889aa0476ea39c5f0c46864d0960dc7354b (patch)
tree5f7ff92beaccb15f8dff80876d04ae15c387ae80 /src/gallium
parent4b0a45da25a5b49b927e6139528bbf74eec9a9ff (diff)
gallium/util: silence clang warning in blitter code
Silence "warning: comparison of constant 4294967295 with expression of type 'ubyte'". Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 63d1307b83c..98c3ac5df3a 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -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)