mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-02 10:13:35 +00:00
Merge pull request #7404 from Kelimion/format-warning
Address printf format warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user