mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
6b9e24aa51
commit
a7d5594d30
@ -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 */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user