diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-05-11 21:27:52 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2019-05-11 21:29:55 +0200 |
| commit | d210628c91f2d33a168c71fc7633745ead925dfc (patch) | |
| tree | c8191ced7f0f35e70b5a824ab9f1245310c50f6b | |
| parent | b05e8d46ec0a1a26c533118d5a0bab2262a99a63 (diff) | |
| download | zig-d210628c91f2d33a168c71fc7633745ead925dfc.tar.gz zig-d210628c91f2d33a168c71fc7633745ead925dfc.zip | |
Amend the error messages
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 3f662c246c..57244aba6a 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1989,10 +1989,10 @@ static Error resolve_enum_zero_bits(CodeGen *g, ZigType *enum_type) { !type_is_valid_extern_enum_tag(g, wanted_tag_int_type)) { enum_type->data.enumeration.is_invalid = true; ErrorMsg *msg = add_node_error(g, decl_node->data.container_decl.init_arg_expr, - buf_sprintf("'%s' is not a valid tag type for an extern union", + buf_sprintf("'%s' is not a valid tag type for an extern enum", buf_ptr(&wanted_tag_int_type->name))); add_error_note(g, msg, decl_node->data.container_decl.init_arg_expr, - buf_sprintf("valid types are 'i8', 'c_int' and 'c_uint' or compatible types")); + buf_sprintf("any integral type of size 8, 16, 32, 64 or 128 bit is valid")); } else { tag_int_type = wanted_tag_int_type; } |
