From 7ad26cd0f4d7d10d52ac0a062aba15f9596477b2 Mon Sep 17 00:00:00 2001 From: thevenyp Date: Thu, 19 Mar 2009 12:21:24 +0000 Subject: src/strtoc.c: cast char pointer to unsigned char pointer (this solves a compilation problem on sparc-sun-solaris2.9, bug reported by Kaveh Ghazi). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@469 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- src/strtoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strtoc.c b/src/strtoc.c index 5d657e3..b32c3ab 100644 --- a/src/strtoc.c +++ b/src/strtoc.c @@ -58,7 +58,7 @@ mpc_strtoc (mpc_ptr rop, char *nptr, char **endptr, int base, mpc_rnd_t rnd) { p = end; if (bracketed) { - if (!isspace (*p)) + if (!isspace ((unsigned char)*p)) goto error; skip_whitespace (&p); -- cgit v1.2.1