fix: warnings fix (after -Wall -Wextra)

This commit is contained in:
samsonium
2026-10-19 18:39:40 +03:00
parent d09468cc6b
commit 04b367e7a0
12 changed files with 66 additions and 61 deletions
+10 -1
View File
@@ -650,8 +650,17 @@ int fzl_vm_run(fzl_vm_t *vm)
break;
case FZL_OPCODE_JMP:
vm->ip = vm->ops[++vm->ip] - 1;
{
if (vm->ops_count >= vm->ip)
{
snprintf(last_err, sizeof(last_err),
"runtime error - expected JMP addr");
return -1;
}
uint64_t jmp_ip = vm->ops[++vm->ip];
vm->ip = jmp_ip - 1;
break;
}
case FZL_OPCODE_AND:
if (vm->dtop < 2)