aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-23 17:29:04 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-23 17:29:04 -0200
commit599f1742c628db70ef84794b3b8b25fdef9e5004 (patch)
tree6221729270cb636861de393484c048b955a72726 /lstrlib.c
parent73abfde2ef16223b12cf04800f6e53bfc68ad356 (diff)
downloadlua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.gz
lua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.bz2
lua-599f1742c628db70ef84794b3b8b25fdef9e5004.zip
detail (typo in comments)
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 }