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

Noah Misch <noah@leadboat.com>

Commit: 333b7db8b39679acf0665b3fc4ad99cbc14fbba7
Author: Noah Misch <noah@leadboat.com>
Date: 2014-07-06T04:29:51Z
Releases: 9.5.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