Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit04b5487

Browse files
committed
Fix a portability bug (ye olde not casting a <ctype.h> argument to
unsigned char). Fortunately we still have buildfarm machines thatwill flag this. Seems to be new in CVS HEAD, so no backpatch.
1 parent6bc12a4 commit04b5487

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/utils/adt/cash.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* this version handles 64 bit numbers and so can hold values up to
1414
* $92,233,720,368,547,758.07.
1515
*
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 $
1717
*/
1818

1919
#include"postgres.h"
@@ -240,8 +240,9 @@ cash_in(PG_FUNCTION_ARGS)
240240
}
241241
}
242242

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++;
245246
while (isspace((unsignedchar)*s)||*s==')')
246247
s++;
247248

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp