diff options
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 |
