Merge pull request #7404 from Kelimion/format-warning

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

No files matched your search

+1 -1
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;
}
}