Merge branch 'tsuna-master'

* tsuna-master:
  Initialize C++ arrays created by array_functions' new_foo().
This commit is contained in:
William S Fulton 2014-09-27 16:51:47 +01:00
commit 54118d1d61

View file

@ -22,7 +22,7 @@
%{
static TYPE *new_##NAME(int nelements) { %}
#ifdef __cplusplus
%{ return new TYPE[nelements]; %}
%{ return new TYPE[nelements](); %}
#else
%{ return (TYPE *) calloc(nelements,sizeof(TYPE)); %}
#endif