From ab976fe2d4fcd085334dbc4a018e1c39222b636f Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Mon, 18 Aug 2008 03:26:06 +0000 Subject: [PATCH] - Beware of signedness --- ext/standard/html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/standard/html.c b/ext/standard/html.c index abc8347499..2b0920722c 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1201,21 +1201,21 @@ encode_amp: if (*s == 'x' || *s == 'X') { s++; while (s < e) { - if (!isxdigit(*s++)) { + if (!isxdigit((int)*(unsigned char *)s++)) { goto encode_amp; } } /* Dec (Z)*/ } else { while (s < e) { - if (!isdigit(*s++)) { + if (!isdigit((int)*(unsigned char *)s++)) { goto encode_amp; } } } } else { /* text entities */ while (s < e) { - if (!isalnum(*s++)) { + if (!isalnum((int)*(unsigned char *)s++)) { goto encode_amp; } } -- 2.50.1