diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 02:09:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 02:09:47 +0000 |
commit | 83fea34b5b1f544751a6d923736ef5d0087b1c81 (patch) | |
tree | 18243b5e42afed79b85eeada7e26a01e4e10fcd0 /src/backend/utils/adt/formatting.c | |
parent | 8a7025f0bb9a9ad15c6dc27979a3c9f4116bca2a (diff) | |
download | postgresql-83fea34b5b1f544751a6d923736ef5d0087b1c81.tar.gz postgresql-83fea34b5b1f544751a6d923736ef5d0087b1c81.zip |
Fix unportable isdigit() call --- must cast arg to unsigned char.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r-- | src/backend/utils/adt/formatting.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index f9e5c026a77..b345fe45e15 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.81 2004/11/01 14:33:10 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.82 2004/11/20 02:09:47 tgl Exp $ * * * Portions Copyright (c) 1999-2004, PostgreSQL Global Development Group @@ -3786,14 +3786,14 @@ NUM_numpart_from_char(NUMProc *Np, int id, int plen) if (*Np->number == ' ' && Np->read_pre + Np->read_post > 0) { /* - * locale sign (NUM_S) is always anchored behind a last number, if: + * locale sign (NUM_S) is always anchored behind a last number, if: * - locale sign expected * - last read char was NUM_0/9 or NUM_DEC * - and next char is not digit - */ + */ if (IS_LSIGN(Np->Num) && isread && - (Np->inout_p+1) <= Np->inout + plen && - isdigit(*(Np->inout_p+1))==0) + (Np->inout_p+1) <= Np->inout + plen && + !isdigit((unsigned char) *(Np->inout_p+1))) { int x; char *tmp = Np->inout_p++; |