diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -695,14 +695,14 @@ | |||
695 | /* | 695 | /* |
696 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. | 696 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. |
697 | ** CHANGE it if it uses too much C-stack space. (For long double, | 697 | ** CHANGE it if it uses too much C-stack space. (For long double, |
698 | ** 'string.format("%.99f", -1e4932)' needs 5034 bytes, so a | 698 | ** 'string.format("%.99f", -1e4932)' needs 5052 bytes, so a |
699 | ** smaller buffer would force a memory allocation for each call to | 699 | ** smaller buffer would force a memory allocation for each call to |
700 | ** 'string.format'.) | 700 | ** 'string.format'.) |
701 | */ | 701 | */ |
702 | #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE | 702 | #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE |
703 | #define LUAL_BUFFERSIZE 8192 | 703 | #define LUAL_BUFFERSIZE 8192 |
704 | #else | 704 | #else |
705 | #define LUAL_BUFFERSIZE ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer))) | 705 | #define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number))) |
706 | #endif | 706 | #endif |
707 | 707 | ||
708 | /* | 708 | /* |