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 csaba.osztrogonac@h-lab.eu
This commit is contained in:
Csaba Osztrogonác 2021-11-23 13:11:45 +01:00 committed by GitHub
parent 6b9e24aa51
commit a7d5594d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */