diff options
author | Gert Wollny <[email protected]> | 2017-11-16 16:09:46 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-11-17 09:27:57 -0700 |
commit | c9fef0fa9f936a9a0d8a6ae148c2f9a5857f0e9e (patch) | |
tree | 61c62f8fe52ec25cd23f5f05ede10f4887fa2869 /src/gallium/auxiliary/util/u_pstipple.c | |
parent | 2644a80ccfa8118acc21300b6ea9f3eac751e5ef (diff) |
gallium/aux/util/u_pstipple.c: Fix one -Wsign-compare warning in ?: construct.
Silence the warning by making the conversion to int explicit.
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_pstipple.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_pstipple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_pstipple.c b/src/gallium/auxiliary/util/u_pstipple.c index ae4cfa1d76a..77b0458dc03 100644 --- a/src/gallium/auxiliary/util/u_pstipple.c +++ b/src/gallium/auxiliary/util/u_pstipple.c @@ -297,7 +297,7 @@ pstip_transform_prolog(struct tgsi_transform_context *ctx) ctx->emit_declaration(ctx, &decl); } - sampIdx = pctx->hasFixedUnit ? pctx->fixedUnit : pctx->freeSampler; + sampIdx = pctx->hasFixedUnit ? (int)pctx->fixedUnit : pctx->freeSampler; /* declare new sampler */ tgsi_transform_sampler_decl(ctx, sampIdx); |