projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0a45d
)
gallium/util: silence clang warning in blitter code
author
Brian Paul
<brianp@vmware.com>
Thu, 8 Feb 2018 17:00:21 +0000
(10:00 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blitter.c
b/src/gallium/auxiliary/util/u_blitter.c
index 63d1307b83c7ca60ee88f7ae4c500faaa988551d..98c3ac5df3af330164d28628196bf653f6d28075 100644
(file)
--- 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)