openmp: Fix signed/unsigned warning

My previous patch broke things when building with Werror.

gcc/ChangeLog:

	* omp-general.cc (omp_max_vf): Cast the constant to poly_uint64.
This commit is contained in:
Andrew Stubbs 2024-11-06 17:50:00 +00:00
parent d334f729e5
commit 345eb9b795

View File

@ -1005,7 +1005,7 @@ omp_max_vf (bool offload)
for (const char *c = getenv ("OFFLOAD_TARGET_NAMES"); c;)
{
if (startswith (c, "amdgcn"))
return ordered_max (64, omp_max_vf (false));
return ordered_max (poly_uint64 (64), omp_max_vf (false));
else if ((c = strchr (c, ':')))
c++;
}