projects
/
gwion.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00f523f
)
:bug: Fix VarargIni loop
author
Jérémie Astor
<astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 12:11:05 +0000
(14:11 +0200)
committer
Jérémie Astor
<astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 12:11:05 +0000
(14:11 +0200)
src/lib/vararg.c
patch
|
blob
|
history
diff --git
a/src/lib/vararg.c
b/src/lib/vararg.c
index 74f6a5675cf0e52b5bda6986041c60dfcc9cf295..0ff2228989c28c6e7a987a3101257e57ccb440b5 100644
(file)
--- a/
src/lib/vararg.c
+++ b/
src/lib/vararg.c
@@
-70,7
+70,7
@@
INSTR(VarargIni) {
vector_copy2(kinds, &arg->t);
m_uint offset = 0;
for(m_uint i = 0; i < vector_size(&arg->t); ++i) {
- const Type t = (Type)vector_at(&arg->t,
arg->
i);
+ const Type t = (Type)vector_at(&arg->t, i);
*(m_uint*)(arg->d + offset) = *(m_uint*)(shred->reg - SZ_INT + offset);
if(isa(t, shred->info->vm->gwion->type[et_object]) > 0) {
const M_Object obj = *(M_Object*)(arg->d + offset);