aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-06-21 22:40:11 +0100
committergingerBill <bill@gingerbill.org>2019-06-21 22:40:11 +0100
commitb891c0feab785d5afc69f30aa41d42a72f7a48e8 (patch)
tree650cf7376253962e2f046878cf2ab05cc7cc0c24 /src/parser.cpp
parentb0dd3ac599fedfea18a9d574620fb105a1c33f4f (diff)
Fix ranges in switch statement for strings
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index ba2b704f7..89290c9a2 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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));
}