mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Annonymous union/struct fields were not initialising their symbol data properly for vector types.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5735 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4d1a45109c
commit
8a20cb3a70
1 changed files with 3 additions and 2 deletions
|
@ -15143,7 +15143,7 @@ static QCC_def_t *QCC_PR_DummyFieldDef(QCC_type_t *type, QCC_function_t *scope,
|
|||
{
|
||||
char array[64];
|
||||
char newname[256];
|
||||
int a, parms;
|
||||
int a, parms, o;
|
||||
QCC_def_t *def, *first=NULL;
|
||||
unsigned int maxfield, startfield;
|
||||
QCC_type_t *ftype;
|
||||
|
@ -15209,7 +15209,8 @@ static QCC_def_t *QCC_PR_DummyFieldDef(QCC_type_t *type, QCC_function_t *scope,
|
|||
def = QCC_PR_GetDef(ftype, newname, scope, true, 0, saved);
|
||||
if (parttype->type == ev_function)
|
||||
def->initialized = true;
|
||||
def->symboldata[0]._int = *fieldofs;
|
||||
for (o = 0; o < parttype->size; o++)
|
||||
def->symboldata[o]._int = *fieldofs + o;
|
||||
*fieldofs += parttype->size;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue