diff --git a/src/vm/handlers/group_str.c b/src/vm/handlers/group_str.c index 9d93c01..aada897 100644 --- a/src/vm/handlers/group_str.c +++ b/src/vm/handlers/group_str.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -29,7 +30,7 @@ int op_build_str(fzl_vm_t *vm) } memset(temp, 0, sizeof(temp)); - fzl_value_t val = vm->dstack[i]; + fzl_value_t val = vm->dstack[vm->dtop - n + i]; switch (val.type) {