authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-11 21:27:52+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-11 21:29:55+02:00
logd210628c91f2d33a168c71fc7633745ead925dfc
treec8191ced7f0f35e70b5a824ab9f1245310c50f6b
parentb05e8d46ec0a1a26c533118d5a0bab2262a99a63

Amend the error messages


1 files changed, 2 insertions(+), 2 deletions(-)

src/analyze.cpp+2-2
......@@ -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 }