From 2cf96d06c6f71862800665c0aa2cc0b7c031ca35 Mon Sep 17 00:00:00 2001 From: samsonium Date: Thu, 29 Oct 2026 17:46:20 +0300 Subject: [PATCH] fix: fmtstring printing --- src/vm/handlers/group_str.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {