aboutsummaryrefslogtreecommitdiff
path: root/contrib/fuzzystrmatch/fuzzystrmatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fuzzystrmatch/fuzzystrmatch.h')
-rw-r--r--contrib/fuzzystrmatch/fuzzystrmatch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.h b/contrib/fuzzystrmatch/fuzzystrmatch.h
index 23e5e57d925..59e0d9258c9 100644
--- a/contrib/fuzzystrmatch/fuzzystrmatch.h
+++ b/contrib/fuzzystrmatch/fuzzystrmatch.h
@@ -153,7 +153,7 @@ char _codes[26] = {
};
-#define ENCODE(c) (isalpha(c) ? _codes[((toupper(c)) - 'A')] : 0)
+#define ENCODE(c) (isalpha((unsigned char) (c)) ? _codes[((toupper((unsigned char) (c))) - 'A')] : 0)
#define isvowel(c) (ENCODE(c) & 1) /* AEIOU */