diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
commit | 4590a89b32b62c75fca7ced96c282c7793b8885c (patch) | |
tree | 99ec05f9ba4ca157cbc8736d0b923d479065bf54 /lstrlib.c | |
parent | 1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff) | |
download | lua-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |