commit 61c3c80177de00576620d79d586eb57d8723ee1a
parent 9de384e27a86431b02a78bdbdef0adccf0d9338d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 28 Oct 2014 16:23:06 -0200
detail
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lstrlib.c b/lstrlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lstrlib.c,v 1.207 2014/10/25 11:50:46 roberto Exp roberto $
+** $Id: lstrlib.c,v 1.208 2014/10/27 13:30:24 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@@ -897,10 +897,10 @@ static int str_format (lua_State *L) {
nb = sprintf(buff, form, n);
break;
}
- case 'e': case 'E': case 'f':
#if defined(LUA_USE_AFORMAT)
case 'a': case 'A':
#endif
+ case 'e': case 'E': case 'f':
case 'g': case 'G': {
addlenmod(form, LUA_NUMBER_FRMLEN);
nb = sprintf(buff, form, luaL_checknumber(L, arg));