From ee051baeac9dce2dbfd5da50da21ae425b548c43 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 30 Dec 2001 23:09:42 +0000 Subject: Make sure that all routines are called with unsigned char values; it's not portable to call them with signed chars. I recall doing this for the last release, but a few more uncasted calls have snuck in. --- src/backend/utils/adt/datetime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/adt/datetime.c') diff --git a/src/backend/utils/adt/datetime.c b/src/backend/utils/adt/datetime.c index 674eaeb91a1..49e93abe99a 100644 --- a/src/backend/utils/adt/datetime.c +++ b/src/backend/utils/adt/datetime.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.85 2001/12/29 21:28:18 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.86 2001/12/30 23:09:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -959,7 +959,7 @@ DecodeDateTime(char **field, int *ftype, int nf, if (tzp == NULL) return -1; - if (isdigit(*field[i]) || ptype != 0) + if (isdigit((unsigned char) *field[i]) || ptype != 0) { char *cp; @@ -1573,7 +1573,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf, /* otherwise, this is a time and/or time zone */ else { - if (isdigit(*field[i])) + if (isdigit((unsigned char) *field[i])) { char *cp; -- cgit v1.2.3