]> granicus.if.org Git - postgresql/commit
Fix unportable usage of <ctype.h> functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Mar 2016 23:23:53 +0000 (18:23 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Mar 2016 23:23:53 +0000 (18:23 -0500)
commitcb0ca0c9953aa0614e7b143bd2440a7582a27233
treed773dc17e8c9222f6ebbe6f5f90fe08e66fbc75b
parent2b46259b46b3d34e6858afbf3d28c30cef12652b
Fix unportable usage of <ctype.h> functions.

isdigit(), isspace(), etc are likely to give surprising results if passed a
signed char.  We should always cast the argument to unsigned char to avoid
that.  Error in commit d78a7d9c7fa3e9cd, found by buildfarm member gaur.
src/backend/tsearch/spell.c