mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 09:58:05 +02:00
intel/devinfo: use compatible type for ARRAY_SIZE
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015>
This commit is contained in:
parent
67619d8153
commit
718c97d525
1 changed files with 1 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ intel_device_info_eu_total(const struct intel_device_info *devinfo)
|
|||
{
|
||||
uint32_t total = 0;
|
||||
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++)
|
||||
for (size_t i = 0; i < ARRAY_SIZE(devinfo->eu_masks); i++)
|
||||
total += __builtin_popcount(devinfo->eu_masks[i]);
|
||||
|
||||
return total;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue