Consistently pass an "unsigned char" to ctype.h functions.

Noah Misch <noah@leadboat.com>

Commit: 49c279efe7858454114bd304444e95573be0804b
Author: Noah Misch <noah@leadboat.com>
Date: 2014-07-06T04:30:11Z
Releases: 9.4.0
Consistently pass an "unsigned char" to ctype.h functions.

The isxdigit() calls relied on undefined behavior.  The isascii() call
was well-defined, but our prevailing style is to include the cast.
Back-patch to 9.4, where the isxdigit() calls were introduced.

Files

PathChange+/−
contrib/pg_upgrade/controldata.c modified +1 −1
src/backend/utils/adt/json.c modified +5 −2