diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-08-22 14:21:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-08-22 14:21:12 -0300 |
commit | 349badabc19e02a96f4620d7de7724442cd9e0a0 (patch) | |
tree | 003cd50b28fdc077ac57efcac379da71d2227d13 | |
parent | e4a9e6fcca4ac2a14c9832b1a40b74cdca7016b9 (diff) | |
download | lua-349badabc19e02a96f4620d7de7724442cd9e0a0.tar.gz lua-349badabc19e02a96f4620d7de7724442cd9e0a0.tar.bz2 lua-349badabc19e02a96f4620d7de7724442cd9e0a0.zip |
wrong test in '#if' for floating-point type
-rw-r--r-- | luaconf.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.255 2016/05/01 20:06:09 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.256 2016/07/18 17:55:59 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -740,11 +740,11 @@ | |||
740 | /* | 740 | /* |
741 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. | 741 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. |
742 | ** CHANGE it if it uses too much C-stack space. (For long double, | 742 | ** CHANGE it if it uses too much C-stack space. (For long double, |
743 | ** 'string.format("%.99f", 1e4932)' needs ~5030 bytes, so a | 743 | ** 'string.format("%.99f", -1e4932)' needs 5034 bytes, so a |
744 | ** smaller buffer would force a memory allocation for each call to | 744 | ** smaller buffer would force a memory allocation for each call to |
745 | ** 'string.format'.) | 745 | ** 'string.format'.) |
746 | */ | 746 | */ |
747 | #if defined(LUA_FLOAT_LONGDOUBLE) | 747 | #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE |
748 | #define LUAL_BUFFERSIZE 8192 | 748 | #define LUAL_BUFFERSIZE 8192 |
749 | #else | 749 | #else |
750 | #define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer))) | 750 | #define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer))) |