Fix unportable isdigit() call --- must cast arg to unsigned char.
This commit is contained in:
parent
8a7025f0bb
commit
83fea34b5b
|
@ -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
|
||||
|
@ -3793,7 +3793,7 @@ NUM_numpart_from_char(NUMProc *Np, int id, int plen)
|
|||
*/
|
||||
if (IS_LSIGN(Np->Num) && isread &&
|
||||
(Np->inout_p+1) <= Np->inout + plen &&
|
||||
isdigit(*(Np->inout_p+1))==0)
|
||||
!isdigit((unsigned char) *(Np->inout_p+1)))
|
||||
{
|
||||
int x;
|
||||
char *tmp = Np->inout_p++;
|
||||
|
|
Loading…
Reference in New Issue