mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
intel/tools: fix invalid type in argument to printf
$2 is exp2, exp2 is defined to be llint and llint is defined to be unsigned long long int. Fixes error reported by Coverity: CID 1451141: Invalid type in argument to printf format specifier (PRINTF_ARGS) Fixes:70308a5a8a("intel/tools: New i965 instruction assembler tool") Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7351> (cherry picked from commite96f33cd30)
This commit is contained in:
parent
b540aaa0a8
commit
3e2245c454
2 changed files with 2 additions and 2 deletions
|
|
@ -850,7 +850,7 @@
|
|||
"description": "intel/tools: fix invalid type in argument to printf",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "70308a5a8a801a960bb9f45fb597f80b77c51014"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2185,7 +2185,7 @@ execsize:
|
|||
| LPAREN exp2 RPAREN
|
||||
{
|
||||
if ($2 > 32 || !isPowerofTwo($2))
|
||||
error(&@2, "Invalid execution size %d\n", $2);
|
||||
error(&@2, "Invalid execution size %llu\n", $2);
|
||||
|
||||
$$ = cvt($2) - 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue