Remove warnings

This commit is contained in:
Wanderley Caloni
2025-07-27 22:19:08 -03:00
parent 4d6a571450
commit e3575553f0
+3 -3
View File
@@ -1131,7 +1131,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
top_iter->child = value;
top_iter->next_index++;
} else {
index = instr->operands[0].as_size;
index = (int) instr->operands[0].as_size;
iter_depth--;
}
break;
@@ -1258,7 +1258,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
}
case OPCODE_JUMP:
index = instr->operands[0].as_size;
index = (int) instr->operands[0].as_size;
break;
case OPCODE_JCND:
@@ -1266,7 +1266,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
// stack is true, so the stack
// can't be empty.
if (!value_can_be_considered_true(types[stack_depth-1], stack[stack_depth-1]))
index = instr->operands[0].as_size;
index = (int) instr->operands[0].as_size;
stack_depth--;
break;