diff options
| author | Krzesimir Nowak <qdlacz@gmail.com> | 2025-12-18 15:04:22 +0100 |
|---|---|---|
| committer | Krzesimir Nowak <qdlacz@gmail.com> | 2025-12-18 15:04:34 +0100 |
| commit | a5809d0185dfeb2473f2a3947459b889c4dd5098 (patch) | |
| tree | fbb48dc0ccd7b7de3daffb97012252a28fdff515 /src/parser.cpp | |
| parent | 3567c64d7a9f8935df5073ec4087649ac9d4a970 (diff) | |
Fix #packed #all_or_none
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 06703d643..de5655ce1 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2803,7 +2803,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) { } is_packed = true; } else if (tag.string == "all_or_none") { - if (is_packed) { + if (is_all_or_none) { syntax_error(tag, "Duplicate struct tag '#%.*s'", LIT(tag.string)); } is_all_or_none = true; |