From 296716797e233391404e3985e795d6083289d852 Mon Sep 17 00:00:00 2001 From: Kirill Yansitov Date: Sat, 15 Oct 2022 00:10:35 +0300 Subject: [PATCH] fix build error --- src/mapleall/maple_util/src/mpl_posix_sighandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapleall/maple_util/src/mpl_posix_sighandler.cpp b/src/mapleall/maple_util/src/mpl_posix_sighandler.cpp index a5af39cf09..48f8841ed5 100644 --- a/src/mapleall/maple_util/src/mpl_posix_sighandler.cpp +++ b/src/mapleall/maple_util/src/mpl_posix_sighandler.cpp @@ -287,7 +287,7 @@ static void InitAlternativeStack() { stack_t stack; constexpr size_t stackSizeMultiplier = 4; - constexpr size_t stackSize = stackSizeMultiplier * SIGSTKSZ; + size_t stackSize = stackSizeMultiplier * SIGSTKSZ; stack.ss_size = stackSize; stack.ss_sp = std::malloc(stackSize); if (stack.ss_sp == nullptr) { -- Gitee