Merge pull request #7404 from Kelimion/format-warning

Address printf format warning
This commit is contained in:
Jeroen van Rijn
2026-08-20 12:54:55 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -12341,7 +12341,7 @@ gb_internal ExprKind check_slice_expr(CheckerContext *c, Operand *o, Ast *node,
for (isize j = i+1; j < gb_count_of(indices); j++) {
i64 b = indices[j];
if (a > b && b >= 0) {
error(se->close, "Invalid slice indices: [%td > %td]", a, b);
error(se->close, "Invalid slice indices: [%lld > %lld]", cast(long long)a, cast(long long)b);
invalid_indices = true;
}
}