From af119c8b55f15910df17e02633d8a5ca656b209a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 10 Dec 2010 17:03:46 -0200 Subject: official support for floating hexa numerals --- lstrlib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 7ca7ea39..3acaf875 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.158 2010/11/16 20:39:41 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.159 2010/11/19 16:25:51 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -861,6 +861,9 @@ static int str_format (lua_State *L) { break; } case 'e': case 'E': case 'f': +#if defined(LUA_USE_AFORMAT) + case 'a': case 'A': +#endif case 'g': case 'G': { addlenmod(form, LUA_FLTFRMLEN); nb = sprintf(buff, form, (LUA_FLTFRM_T)luaL_checknumber(L, arg)); -- cgit v1.2.3-55-g6feb