diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 83afbf6a6..6f968c368 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -2739,7 +2739,7 @@ gb_internal void check_cast_error_suggestion(CheckerContext *c, Operand *o, Type } } else if (is_type_integer(o->type) && is_type_pointer(type)) { if (is_type_uintptr(o->type)) { - error_line("\tSuggestion: %a may be directly casted to %s\n", a, b); + error_line("\tSuggestion: %s may be directly casted to %s\n", a, b); } else { error_line("\tSuggestion: for an integer to be casted to a pointer, it must be converted to 'uintptr' first\n"); } diff --git a/src/parser.cpp b/src/parser.cpp index a527bc7ec..89a39e047 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4317,7 +4317,7 @@ gb_internal u32 check_field_prefixes(AstFile *f, isize name_count, u32 allowed_f if (m.token_kind == Token_Hash) { prefix = "#"; } - syntax_error(f->curr_token, "'%s%.*s' in not allowed within this field list", prefix, LIT(m.name)); + syntax_error(f->curr_token, "'%s%.*s' is not allowed within this field list", prefix, LIT(m.name)); } }