Skip to content

Commit d210628

Browse files
committed
Amend the error messages
1 parent b05e8d4 commit d210628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyze.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,10 +1989,10 @@ static Error resolve_enum_zero_bits(CodeGen *g, ZigType *enum_type) {
19891989
!type_is_valid_extern_enum_tag(g, wanted_tag_int_type)) {
19901990
enum_type->data.enumeration.is_invalid = true;
19911991
ErrorMsg *msg = add_node_error(g, decl_node->data.container_decl.init_arg_expr,
1992-
buf_sprintf("'%s' is not a valid tag type for an extern union",
1992+
buf_sprintf("'%s' is not a valid tag type for an extern enum",
19931993
buf_ptr(&wanted_tag_int_type->name)));
19941994
add_error_note(g, msg, decl_node->data.container_decl.init_arg_expr,
1995-
buf_sprintf("valid types are 'i8', 'c_int' and 'c_uint' or compatible types"));
1995+
buf_sprintf("any integral type of size 8, 16, 32, 64 or 128 bit is valid"));
19961996
} else {
19971997
tag_int_type = wanted_tag_int_type;
19981998
}

0 commit comments

Comments
 (0)