Skip to content

Commit a7d5594

Browse files
authored
Fix JERRY_VLA macro on Windows (jerryscript-project#4827)
Fixes jerryscript-project#4824. The last macro argument should be inside parentheses. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
1 parent 6b9e24a commit a7d5594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jerry-core/include/jerryscript-compiler.h

Lines changed: 1 addition & 1 deletion
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)