Commit 8131b4d7 by Jakub Jelinek Committed by Jakub Jelinek

omp-low.c (oacc_parse_default_dims): Avoid -Wsign-compare warning...

	* omp-low.c (oacc_parse_default_dims): Avoid
	-Wsign-compare warning, make sure value fits into int
	rather than just unsigned int.

From-SVN: r233044
parent e681fb2b
2016-02-01 Jakub Jelinek <jakub@redhat.com>
* omp-low.c (oacc_parse_default_dims): Avoid
-Wsign-compare warning, make sure value fits into int
rather than just unsigned int.
2016-02-01 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/67921
......
......@@ -20285,10 +20285,10 @@ oacc_parse_default_dims (const char *dims)
errno = 0;
val = strtol (pos, CONST_CAST (char **, &eptr), 10);
if (errno || val <= 0 || (unsigned)val != val)
if (errno || val <= 0 || (int) val != val)
goto malformed;
pos = eptr;
oacc_default_dims[ix] = (int)val;
oacc_default_dims[ix] = (int) val;
}
}
if (*pos)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment