diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 350636b95..bd3528a82 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -1522,7 +1522,7 @@ gb_internal bool check_builtin_simd_operation(CheckerContext *c, Operand *operan } if (arg_count > max_count) { - error(call, "Too many '%.*s' indices, %td > %td", LIT(builtin_name), arg_count, max_count); + error(call, "Too many '%.*s' indices, %lld > %lld", LIT(builtin_name), cast(long long)arg_count, cast(long long)max_count); return false; } @@ -3508,7 +3508,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As // No upper bound on the index count if (arg_count < 2) { - error(call, "Not enough 'swizzle' indices, %td < 2", arg_count); + error(call, "Not enough 'swizzle' indices, %lld < 2", cast(long long)arg_count); return false; } diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 39409777b..8c06d2278 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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; } }