From fc25053e8bb614cabd4ade3aef94f84762f3fd5f Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 18 Nov 2019 09:59:26 +0000 Subject: [PATCH] Set initial STACK_SIZE to 16 (plenty), make it private static member var (ref #4096) --- include/mapnik/text/scrptrun.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mapnik/text/scrptrun.hpp b/include/mapnik/text/scrptrun.hpp index bbf479881..2e687c1da 100644 --- a/include/mapnik/text/scrptrun.hpp +++ b/include/mapnik/text/scrptrun.hpp @@ -26,8 +26,6 @@ #pragma GCC diagnostic pop #include -const unsigned int STACK_SIZE = 1 << 7; // 2^n - struct ScriptRecord { UChar32 startChar = 0; @@ -107,6 +105,8 @@ private: * for ICU "poor man's RTTI". */ static const char fgClassID; + //initial stack size + const unsigned int STACK_SIZE = 1 << 4; // 2^n }; inline ScriptRun::ScriptRun()