1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Add missing casts to unsigned char in recently-added isspace() calls.

This commit is contained in:
Tom Lane
2004-04-01 22:51:31 +00:00
parent 7df21fe8a8
commit b3fcc816ae
3 changed files with 9 additions and 9 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.101 2004/03/15 03:29:22 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.102 2004/04/01 22:51:31 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -276,7 +276,7 @@ float4in(PG_FUNCTION_ARGS)
}
/* skip leading whitespace */
while (*num != '\0' && isspace(*num))
while (*num != '\0' && isspace((unsigned char) *num))
num++;
errno = 0;
@ -319,7 +319,7 @@ float4in(PG_FUNCTION_ARGS)
}
/* skip trailing whitespace */
while (*endptr != '\0' && isspace(*endptr))
while (*endptr != '\0' && isspace((unsigned char) *endptr))
endptr++;
/* if there is any junk left at the end of the string, bail out */
@ -441,7 +441,7 @@ float8in(PG_FUNCTION_ARGS)
}
/* skip leading whitespace */
while (*num != '\0' && isspace(*num))
while (*num != '\0' && isspace((unsigned char) *num))
num++;
errno = 0;
@ -484,7 +484,7 @@ float8in(PG_FUNCTION_ARGS)
}
/* skip trailing whitespace */
while (*endptr != '\0' && isspace(*endptr))
while (*endptr != '\0' && isspace((unsigned char) *endptr))
endptr++;
/* if there is any junk left at the end of the string, bail out */