mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
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
@ -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…
Reference in New Issue
Block a user