From e3575553f0cdfde5d71a5a44bb6d5ff20ec25ea7 Mon Sep 17 00:00:00 2001 From: Wanderley Caloni Date: Sun, 27 Jul 2025 22:19:08 -0300 Subject: [PATCH] Remove warnings --- src/tinytemplate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tinytemplate.c b/src/tinytemplate.c index c9ea499..c1da0ad 100644 --- a/src/tinytemplate.c +++ b/src/tinytemplate.c @@ -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;