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:
parent
d334f729e5
commit
345eb9b795
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue