From 767adcf5d63b9fb72a3951a8270d4ce1575f1294 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Mon, 19 Jan 2004 18:40:23 +0000 Subject: [PATCH] Correct type for isalnum --- contrib/ltree/ltree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ltree/ltree.h b/contrib/ltree/ltree.h index c732a37fa2d..edcda22e4b9 100644 --- a/contrib/ltree/ltree.h +++ b/contrib/ltree/ltree.h @@ -87,7 +87,7 @@ typedef struct #ifndef abs #define abs(a) ((a) < (0) ? -(a) : (a)) #endif -#define ISALNUM(x) ( isalnum((unsigned int)(x)) || (x) == '_' ) +#define ISALNUM(x) ( isalnum((unsigned char)(x)) || (x) == '_' ) /* full text query */