From a7d5594d30af2c8441eb55c94e9903eac324bdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Tue, 23 Nov 2021 13:11:45 +0100 Subject: [PATCH] Fix JERRY_VLA macro on Windows (#4827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4824. The last macro argument should be inside parentheses. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu --- jerry-core/include/jerryscript-compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/include/jerryscript-compiler.h b/jerry-core/include/jerryscript-compiler.h index 90832f8cd..946a7959b 100644 --- a/jerry-core/include/jerryscript-compiler.h +++ b/jerry-core/include/jerryscript-compiler.h @@ -70,7 +70,7 @@ JERRY_C_API_BEGIN * instead. */ void *__cdecl _alloca (size_t _Size); -#define JERRY_VLA(type, name, size) type *name = (type *) (_alloca (sizeof (type) * size)) +#define JERRY_VLA(type, name, size) type *name = (type *) (_alloca (sizeof (type) * (size))) #endif /* _MSC_VER */