env.c (parse_stacksize): Add cast to avoid warning.

2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

	* env.c (parse_stacksize): Add cast to avoid warning.
	(parse_spincount): Likewise.

From-SVN: r137260
This commit is contained in:
Krister Walfridsson 2008-06-29 21:41:03 +00:00 committed by Krister Walfridsson
parent 6ae89ea8fe
commit 323ff90332
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
* env.c (parse_stacksize): Add cast to avoid warning.
(parse_spincount): Likewise.
2008-06-27 Jakub Jelinek <jakub@redhat.com>
* testsuite/libgomp.c/loop-10.c: New test.

View File

@ -207,7 +207,7 @@ parse_stacksize (const char *name, unsigned long *pvalue)
++end;
if (*end != '\0')
{
switch (tolower (*end))
switch (tolower ((unsigned char) *end))
{
case 'b':
shift = 0;
@ -276,7 +276,7 @@ parse_spincount (const char *name, unsigned long long *pvalue)
++end;
if (*end != '\0')
{
switch (tolower (*end))
switch (tolower ((unsigned char) *end))
{
case 'k':
mult = 1000LL;