Correctly generate metadata file for events so that there is no spurious ByRef arguments anymore.

[COMPILER]
* BUG: Correctly generate metadata file for events so that there is no spurious ByRef arguments anymore.
This commit is contained in:
gambas 2019-10-08 09:12:12 +02:00
parent e8ae38e098
commit b7f2918fbd

View file

@ -372,7 +372,7 @@ void CLASS_add_event(CLASS *class, TRANS_EVENT *decl)
if (event->nparam)
{
ALLOC(&event->param, decl->nparam * sizeof(PARAM));
ALLOC_ZERO(&event->param, decl->nparam * sizeof(PARAM));
for (i = 0; i < decl->nparam; i++)
{