1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +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

@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.52 2004/03/11 02:11:13 neilc Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.53 2004/04/01 22:51:31 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -114,7 +114,7 @@ scanint8(const char *str, bool errorOK, int64 *result)
}
/* allow trailing whitespace, but not other trailing chars */
while (*ptr != '\0' && isspace(*ptr))
while (*ptr != '\0' && isspace((unsigned char) *ptr))
ptr++;
if (*ptr != '\0')