Fix for x86-64: The first and second arguments of memcpy must be pointers.

This commit is contained in:
Shinichiro Hamaji 2009-04-15 04:19:24 +09:00 committed by grischka
parent 2e9b57b6d0
commit de3f0a46fe

4
tcc.c
View file

@ -6634,11 +6634,11 @@ void vstore(void)
/* destination */ /* destination */
vpushv(vtop - 2); vpushv(vtop - 2);
vtop->type.t = VT_INT; vtop->type.t = VT_PTR;
gaddrof(); gaddrof();
/* source */ /* source */
vpushv(vtop - 2); vpushv(vtop - 2);
vtop->type.t = VT_INT; vtop->type.t = VT_PTR;
gaddrof(); gaddrof();
/* type size */ /* type size */
vpushi(size); vpushi(size);