aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index fad66510..18e76304 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.207 2014/10/25 11:50:46 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.208 2014/10/27 13:30:24 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*/
@@ -897,10 +897,10 @@ static int str_format (lua_State *L) {
897 nb = sprintf(buff, form, n); 897 nb = sprintf(buff, form, n);
898 break; 898 break;
899 } 899 }
900 case 'e': case 'E': case 'f':
901#if defined(LUA_USE_AFORMAT) 900#if defined(LUA_USE_AFORMAT)
902 case 'a': case 'A': 901 case 'a': case 'A':
903#endif 902#endif
903 case 'e': case 'E': case 'f':
904 case 'g': case 'G': { 904 case 'g': case 'G': {
905 addlenmod(form, LUA_NUMBER_FRMLEN); 905 addlenmod(form, LUA_NUMBER_FRMLEN);
906 nb = sprintf(buff, form, luaL_checknumber(L, arg)); 906 nb = sprintf(buff, form, luaL_checknumber(L, arg));