mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01: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>
This commit is contained in:
parent
13859c769f
commit
e96f33cd30
1 changed files with 1 additions and 1 deletions
|
|
@ -2261,7 +2261,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