mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
draw: fix undefined shift of (1 << 31)
Pointed out by a coverity scan. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
4fcb749044
commit
e4ed08873b
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ aa_transform_prolog(struct tgsi_transform_context *ctx)
|
|||
|
||||
/* find two free temp regs */
|
||||
for (i = 0; i < 32; i++) {
|
||||
if ((aactx->tempsUsed & (1 << i)) == 0) {
|
||||
if ((aactx->tempsUsed & (1u << i)) == 0) {
|
||||
/* found a free temp */
|
||||
if (aactx->tmp0 < 0)
|
||||
aactx->tmp0 = i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue