summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_tex.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-05-18 10:17:02 -0400
committerRob Clark <[email protected]>2016-05-20 11:13:50 -0400
commit53c48feae086bbf5b17798fc1cd98ab14a17c7a8 (patch)
tree7c8e8663024acda5fe7c1b92371eb2f4b2959362 /src/compiler/nir/nir_lower_tex.c
parentbb993da7959da07cbbbd0f8d41e07652263260e6 (diff)
nir: coverity sign-extension fix
Not 100% sure, but I think being an unsigned literal will help: CID 1358505 (#1 of 1): Unintended sign extension (SIGN_EXTENSION)sign_extension: Suspicious implicit sign extension: load1->def.num_components with type unsigned char (8 bits, unsigned) is promoted in load1->def.num_components * (load1->def.bit_size / 8) to type int (32 bits, signed), then sign-extended to type unsigned long (64 bits, unsigned). If load1->def.num_components * (load1->def.bit_size / 8) is greater than 0x7FFFFFFF, the upper bits of the result will all be 1. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_tex.c')
0 files changed, 0 insertions, 0 deletions