| ... | @@ -1989,10 +1989,10 @@ static Error resolve_enum_zero_bits(CodeGen *g, ZigType *enum_type) { | ... | @@ -1989,10 +1989,10 @@ static Error resolve_enum_zero_bits(CodeGen *g, ZigType *enum_type) { |
| 1989 | !type_is_valid_extern_enum_tag(g, wanted_tag_int_type)) { | 1989 | !type_is_valid_extern_enum_tag(g, wanted_tag_int_type)) { |
| 1990 | enum_type->data.enumeration.is_invalid = true; | 1990 | enum_type->data.enumeration.is_invalid = true; |
| 1991 | ErrorMsg *msg = add_node_error(g, decl_node->data.container_decl.init_arg_expr, | 1991 | 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", |
| 1993 | buf_ptr(&wanted_tag_int_type->name))); | 1993 | buf_ptr(&wanted_tag_int_type->name))); |
| 1994 | add_error_note(g, msg, decl_node->data.container_decl.init_arg_expr, | 1994 | 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")); |
| 1996 | } else { | 1996 | } else { |
| 1997 | tag_int_type = wanted_tag_int_type; | 1997 | tag_int_type = wanted_tag_int_type; |
| 1998 | } | 1998 | } |