diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-28 16:23:31 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-28 16:23:31 -0200 |
commit | 61c3c80177de00576620d79d586eb57d8723ee1a (patch) | |
tree | 1e152a15a09ade96ce5547b1df5990e27a685eb4 /lstrlib.c | |
parent | 9de384e27a86431b02a78bdbdef0adccf0d9338d (diff) | |
download | lua-61c3c80177de00576620d79d586eb57d8723ee1a.tar.gz lua-61c3c80177de00576620d79d586eb57d8723ee1a.tar.bz2 lua-61c3c80177de00576620d79d586eb57d8723ee1a.zip |
detail
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.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)); |