Fix ranges in switch statement for strings

This commit is contained in:
gingerBill
2019-06-21 22:40:11 +01:00
parent b0dd3ac599
commit b891c0feab
3 changed files with 9 additions and 2 deletions

View File

@@ -1982,7 +1982,7 @@ Ast *parse_operand(AstFile *f, bool lhs) {
while (allow_token(f, Token_Hash)) {
Token tag = expect_token_after(f, Token_Ident, "#");
if (tag.string == "align") {
if (tag.string == "align") {
if (align) {
syntax_error(tag, "Duplicate union tag '#%.*s'", LIT(tag.string));
}