Skip to content

Commit a7d5594

Browse files
authored
Fix JERRY_VLA macro on Windows (#4827)
Fixes #4824. The last macro argument should be inside parentheses. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
1 parent 6b9e24a commit a7d5594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-core/include/jerryscript-compiler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ JERRY_C_API_BEGIN
7070
* instead.
7171
*/
7272
void *__cdecl _alloca (size_t _Size);
73-
#define JERRY_VLA(type, name, size) type *name = (type *) (_alloca (sizeof (type) * size))
73+
#define JERRY_VLA(type, name, size) type *name = (type *) (_alloca (sizeof (type) * (size)))
7474

7575
#endif /* _MSC_VER */
7676

0 commit comments

Comments
 (0)