diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -709,16 +709,9 @@ | |||
709 | 709 | ||
710 | /* | 710 | /* |
711 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. | 711 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. |
712 | ** CHANGE it if it uses too much C-stack space. (For long double, | ||
713 | ** 'string.format("%.99f", -1e4932)' needs 5052 bytes, so a | ||
714 | ** smaller buffer would force a memory allocation for each call to | ||
715 | ** 'string.format'.) | ||
716 | */ | 712 | */ |
717 | #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE | ||
718 | #define LUAL_BUFFERSIZE 8192 | ||
719 | #else | ||
720 | #define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number))) | 713 | #define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number))) |
721 | #endif | 714 | |
722 | 715 | ||
723 | /* | 716 | /* |
724 | @@ LUAI_MAXALIGN defines fields that, when used in a union, ensure | 717 | @@ LUAI_MAXALIGN defines fields that, when used in a union, ensure |