diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 17:29:04 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 17:29:04 -0200 |
commit | 599f1742c628db70ef84794b3b8b25fdef9e5004 (patch) | |
tree | 6221729270cb636861de393484c048b955a72726 /lstrlib.c | |
parent | 73abfde2ef16223b12cf04800f6e53bfc68ad356 (diff) | |
download | lua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.gz lua-599f1742c628db70ef84794b3b8b25fdef9e5004.tar.bz2 lua-599f1742c628db70ef84794b3b8b25fdef9e5004.zip |
detail (typo in comments)
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |