|
13 | 13 | * this version handles 64 bit numbers and so can hold values up to
|
14 | 14 | * $92,233,720,368,547,758.07.
|
15 | 15 | *
|
16 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.70 2007/02/27 23:48:07 tgl Exp $ |
| 16 | + * $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.71 2007/07/12 23:51:10 tgl Exp $ |
17 | 17 | */
|
18 | 18 |
|
19 | 19 | #include"postgres.h"
|
@@ -240,8 +240,9 @@ cash_in(PG_FUNCTION_ARGS)
|
240 | 240 | }
|
241 | 241 | }
|
242 | 242 |
|
243 |
| -/* should only be trailing digits followed by whitespace or closing paren */ |
244 |
| -while (isdigit(*s))s++; |
| 243 | +/* should only be trailing digits followed by whitespace or right paren */ |
| 244 | +while (isdigit((unsignedchar)*s)) |
| 245 | +s++; |
245 | 246 | while (isspace((unsignedchar)*s)||*s==')')
|
246 | 247 | s++;
|
247 | 248 |
|
|