Vla fix for 64 bits targets
This commit is contained in:
parent
719d96665e
commit
291eccc154
1 changed files with 4 additions and 0 deletions
4
tccgen.c
4
tccgen.c
|
@ -3945,7 +3945,11 @@ static void vpush_type_size(CType *type, int *a)
|
||||||
int size = type_size(type, a);
|
int size = type_size(type, a);
|
||||||
if (size < 0)
|
if (size < 0)
|
||||||
tcc_error("unknown type size");
|
tcc_error("unknown type size");
|
||||||
|
#if PTR_SIZE == 8
|
||||||
|
vpushll(size);
|
||||||
|
#else
|
||||||
vpushi(size);
|
vpushi(size);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue