mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +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:
@ -473,9 +473,8 @@ get_seq_name(text *seqin)
|
||||
*/
|
||||
for (; *rawname; rawname++)
|
||||
{
|
||||
if (isascii((int) *rawname) &&
|
||||
isupper((int) *rawname))
|
||||
*rawname = tolower(*rawname);
|
||||
if (isupper((unsigned char) *rawname))
|
||||
*rawname = tolower((unsigned char) *rawname);
|
||||
}
|
||||
}
|
||||
return seqname;
|
||||
|
Reference in New Issue
Block a user