From b678e465a1108ccb665744b9e637ccb218859fe6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Feb 1999 12:49:53 -0300 Subject: warnings in Solaris --- lstrlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 551bd445..ac0b4f24 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.26 1999/02/12 19:23:02 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.27 1999/02/25 19:13:56 roberto Exp roberto $ ** Standard library for strings and pattern-matching ** See Copyright Notice in lua.h */ @@ -209,7 +209,7 @@ int luaI_singlematch (int c, char *p, char **ep) { } else if ((*(p+1) == '-') && (p+2 < end)) { p+=2; - if ((unsigned char)*(p-2) <= c && c <= (unsigned char)*p) + if ((int)(unsigned char)*(p-2) <= c && c <= (int)(unsigned char)*p) return sig; } else if ((unsigned char)*p == c) return sig; -- cgit v1.2.3-55-g6feb