diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-03 20:45:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-12-03 20:45:40 +0000 |
commit | a27b691e2903a886be640db801677f6f988d3793 (patch) | |
tree | c68f25c9edef18954e9c5b3d74893f1df87b8871 /src/backend/utils/adt/selfuncs.c | |
parent | 4d2a506526ceacab5f75df040596a5287ab40612 (diff) | |
download | postgresql-a27b691e2903a886be640db801677f6f988d3793.tar.gz postgresql-a27b691e2903a886be640db801677f6f988d3793.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
-rw-r--r-- | src/backend/utils/adt/selfuncs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 8d4c4d080a4..078f5bcdb63 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.83 2000/11/25 20:33:53 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.84 2000/12/03 20:45:36 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1421,7 +1421,7 @@ like_fixed_prefix(char *patt, bool case_insensitive, * XXX I suspect isalpha() is not an adequately locale-sensitive * test for characters that can vary under case folding? */ - if (case_insensitive && isalpha((int) patt[pos])) + if (case_insensitive && isalpha((unsigned char) patt[pos])) break; /* * NOTE: this code used to think that %% meant a literal %, but @@ -1504,7 +1504,7 @@ regex_fixed_prefix(char *patt, bool case_insensitive, patt[pos] == '(' || patt[pos] == '[' || patt[pos] == '$' || - (case_insensitive && isalpha((int) patt[pos]))) + (case_insensitive && isalpha((unsigned char) patt[pos]))) break; /* * Check for quantifiers. Except for +, this means the preceding |