mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 09:44:26 +00:00
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user