Skip to content

Commit

Permalink
Fix macros for alloca/_alloca usage (not a source of problems in curr…
Browse files Browse the repository at this point in the history
…ent code).
  • Loading branch information
carlo-bramini committed Nov 12, 2017
1 parent 4894189 commit 15b31be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/fluidsynth_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ typedef int fluid_socket_t;
_type _name[_len]
#elif defined HAVE_ALLOCA
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type * _name = (_type *)alloca(_len * sizeof(_type))
_type * _name = (_type *)alloca((_len) * sizeof(_type))
#elif defined HAVE__ALLOCA
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type * _name = (_type *)_alloca(_len * sizeof(_type))
_type * _name = (_type *)_alloca((_len) * sizeof(_type))
#else
# define FLUID_DECLARE_VLA(_type, _name, _len) \
_type* _name = g_newa(_type, (_len))
Expand Down

0 comments on commit 15b31be

Please sign in to comment.