diff options
author | Dave Airlie <[email protected]> | 2019-04-11 20:36:03 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-04-12 08:53:59 +1000 |
commit | 4690f9072828308bae59cfa549490e166fb60192 (patch) | |
tree | 05b30c96cba18ba275c094be294eda114ad9d3a0 /src/mesa | |
parent | e4ed08873bfc3d0f778f768f0bdfd159c709da8e (diff) |
swrast: fix undefined shift of 1 << 31
Pointed out by coverity
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/swrast/s_span.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index f50b549a97f..184a37c99b8 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -769,7 +769,7 @@ clip_span( struct gl_context *ctx, SWspan *span ) * For arrays of values, shift them left. */ for (i = 0; i < VARYING_SLOT_MAX; i++) { - if (span->interpMask & (1 << i)) { + if (span->interpMask & (1u << i)) { GLuint j; for (j = 0; j < 4; j++) { span->attrStart[i][j] += leftClip * span->attrStepX[i][j]; |