|
1 | 1 | /* -----------------------------------------------------------------------
|
2 | 2 | * formatting.c
|
3 | 3 | *
|
4 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.81 2004/11/01 14:33:10 momjian Exp $ |
| 4 | + * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.82 2004/11/20 02:09:47 tgl Exp $ |
5 | 5 | *
|
6 | 6 | *
|
7 | 7 | * Portions Copyright (c) 1999-2004, PostgreSQL Global Development Group
|
@@ -3786,14 +3786,14 @@ NUM_numpart_from_char(NUMProc *Np, int id, int plen)
|
3786 | 3786 | if (*Np->number==' '&&Np->read_pre+Np->read_post>0)
|
3787 | 3787 | {
|
3788 | 3788 | /*
|
3789 |
| - * locale sign (NUM_S) is always anchored behind a last number, if: |
| 3789 | + * locale sign (NUM_S) is always anchored behind a last number, if: |
3790 | 3790 | *- locale sign expected
|
3791 | 3791 | *- last read char was NUM_0/9 or NUM_DEC
|
3792 | 3792 | *- and next char is not digit
|
3793 |
| - */ |
| 3793 | + */ |
3794 | 3794 | if (IS_LSIGN(Np->Num)&&isread&&
|
3795 |
| -(Np->inout_p+1) <=Np->inout+plen&& |
3796 |
| -isdigit(*(Np->inout_p+1))==0) |
| 3795 | +(Np->inout_p+1) <=Np->inout+plen&& |
| 3796 | +!isdigit((unsignedchar)*(Np->inout_p+1))) |
3797 | 3797 | {
|
3798 | 3798 | intx;
|
3799 | 3799 | char*tmp=Np->inout_p++;
|
|