mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
Vla fix for 64 bits targets
This commit is contained in:
parent
719d96665e
commit
291eccc154
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…
Reference in New Issue
Block a user