From 4590a89b32b62c75fca7ced96c282c7793b8885c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Oct 2010 17:01:37 -0200 Subject: corrected warnings from different compilers (mostly casts and small details) --- lstrlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 79b3ab37..00a510ee 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.153 2010/05/24 19:34:57 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.154 2010/07/02 11:38:13 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -758,9 +758,9 @@ static void addquoted (lua_State *L, luaL_Buffer *b, int arg) { else if (*s == '\0' || iscntrl(uchar(*s))) { char buff[10]; if (!isdigit(uchar(*(s+1)))) - sprintf(buff, "\\%d", uchar(*s)); + sprintf(buff, "\\%d", (int)uchar(*s)); else - sprintf(buff, "\\%03d", uchar(*s)); + sprintf(buff, "\\%03d", (int)uchar(*s)); luaL_addstring(b, buff); } else -- cgit v1.2.3-55-g6feb