From 323ff9033223ed7c7b3ec10f2dfb61985fb55884 Mon Sep 17 00:00:00 2001 From: Krister Walfridsson Date: Sun, 29 Jun 2008 21:41:03 +0000 Subject: env.c (parse_stacksize): Add cast to avoid warning. 2008-06-29 Krister Walfridsson * env.c (parse_stacksize): Add cast to avoid warning. (parse_spincount): Likewise. From-SVN: r137260 --- libgomp/ChangeLog | 5 +++++ libgomp/env.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'libgomp') diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index ad550e8..2d7516b 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2008-06-29 Krister Walfridsson + + * env.c (parse_stacksize): Add cast to avoid warning. + (parse_spincount): Likewise. + 2008-06-27 Jakub Jelinek * testsuite/libgomp.c/loop-10.c: New test. diff --git a/libgomp/env.c b/libgomp/env.c index b1349c8..a2f9029 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -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; -- cgit v1.1