mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Ensure that all uses of <ctype.h> functions are applied to unsigned-char
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.43 2000/10/24 20:14:35 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.44 2000/12/03 20:45:36 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -85,12 +85,12 @@ int2vectorin(PG_FUNCTION_ARGS)
|
||||
{
|
||||
if (sscanf(intString, "%hd", &result[slot]) != 1)
|
||||
break;
|
||||
while (*intString && isspace((int) *intString))
|
||||
while (*intString && isspace((unsigned char) *intString))
|
||||
intString++;
|
||||
while (*intString && !isspace((int) *intString))
|
||||
while (*intString && !isspace((unsigned char) *intString))
|
||||
intString++;
|
||||
}
|
||||
while (*intString && isspace((int) *intString))
|
||||
while (*intString && isspace((unsigned char) *intString))
|
||||
intString++;
|
||||
if (*intString)
|
||||
elog(ERROR, "int2vector value has too many values");
|
||||
|
Reference in New Issue
Block a user