Merge pull request #3 from caloni/main

Remove warnings
This commit is contained in:
Francesco Cozzuto
2025-07-29 15:08:24 +02:00
committed by GitHub
+3 -3
View File
@@ -1131,7 +1131,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
top_iter->child = value; top_iter->child = value;
top_iter->next_index++; top_iter->next_index++;
} else { } else {
index = instr->operands[0].as_size; index = (int) instr->operands[0].as_size;
iter_depth--; iter_depth--;
} }
break; break;
@@ -1258,7 +1258,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
} }
case OPCODE_JUMP: case OPCODE_JUMP:
index = instr->operands[0].as_size; index = (int) instr->operands[0].as_size;
break; break;
case OPCODE_JCND: case OPCODE_JCND:
@@ -1266,7 +1266,7 @@ tinytemplate_eval(const char *src, const instr_t *program,
// stack is true, so the stack // stack is true, so the stack
// can't be empty. // can't be empty.
if (!value_can_be_considered_true(types[stack_depth-1], stack[stack_depth-1])) 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--; stack_depth--;
break; break;