aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 7ca7ea39..3acaf875 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.158 2010/11/16 20:39:41 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.159 2010/11/19 16:25:51 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*/
@@ -861,6 +861,9 @@ static int str_format (lua_State *L) {
861 break; 861 break;
862 } 862 }
863 case 'e': case 'E': case 'f': 863 case 'e': case 'E': case 'f':
864#if defined(LUA_USE_AFORMAT)
865 case 'a': case 'A':
866#endif
864 case 'g': case 'G': { 867 case 'g': case 'G': {
865 addlenmod(form, LUA_FLTFRMLEN); 868 addlenmod(form, LUA_FLTFRMLEN);
866 nb = sprintf(buff, form, (LUA_FLTFRM_T)luaL_checknumber(L, arg)); 869 nb = sprintf(buff, form, (LUA_FLTFRM_T)luaL_checknumber(L, arg));