aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
commit4590a89b32b62c75fca7ced96c282c7793b8885c (patch)
tree99ec05f9ba4ca157cbc8736d0b923d479065bf54 /lstrlib.c
parent1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff)
downloadlua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.gz
lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.bz2
lua-4590a89b32b62c75fca7ced96c282c7793b8885c.zip
corrected warnings from different compilers (mostly casts and small
details)
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 79b3ab37..00a510ee 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.153 2010/05/24 19:34:57 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.154 2010/07/02 11:38:13 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -758,9 +758,9 @@ static void addquoted (lua_State *L, luaL_Buffer *b, int arg) {
758 else if (*s == '\0' || iscntrl(uchar(*s))) { 758 else if (*s == '\0' || iscntrl(uchar(*s))) {
759 char buff[10]; 759 char buff[10];
760 if (!isdigit(uchar(*(s+1)))) 760 if (!isdigit(uchar(*(s+1))))
761 sprintf(buff, "\\%d", uchar(*s)); 761 sprintf(buff, "\\%d", (int)uchar(*s));
762 else 762 else
763 sprintf(buff, "\\%03d", uchar(*s)); 763 sprintf(buff, "\\%03d", (int)uchar(*s));
764 luaL_addstring(b, buff); 764 luaL_addstring(b, buff);
765 } 765 }
766 else 766 else