aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 9a4cf90d..84b6e4eb 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.258 2017/11/08 14:50:23 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.259 2017/11/16 13:19:06 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*/
@@ -1117,7 +1117,7 @@ static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
1117 else { /* integers */ 1117 else { /* integers */
1118 lua_Integer n = lua_tointeger(L, arg); 1118 lua_Integer n = lua_tointeger(L, arg);
1119 const char *format = (n == LUA_MININTEGER) /* corner case? */ 1119 const char *format = (n == LUA_MININTEGER) /* corner case? */
1120 ? "0x%" LUA_INTEGER_FRMLEN "x" /* use hexa */ 1120 ? "0x%" LUA_INTEGER_FRMLEN "x" /* use hex */
1121 : LUA_INTEGER_FMT; /* else use default format */ 1121 : LUA_INTEGER_FMT; /* else use default format */
1122 nb = l_sprintf(buff, MAX_ITEM, format, (LUAI_UACINT)n); 1122 nb = l_sprintf(buff, MAX_ITEM, format, (LUAI_UACINT)n);
1123 } 1123 }