mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Merge pull request #2528 from matias-eduardo/patch-1
Patch "no_copy" typo in parser.cpp
This commit is contained in:
+1
-1
@@ -2462,7 +2462,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
|
|||||||
}
|
}
|
||||||
is_raw_union = true;
|
is_raw_union = true;
|
||||||
} else if (tag.string == "no_copy") {
|
} else if (tag.string == "no_copy") {
|
||||||
if (is_packed) {
|
if (no_copy) {
|
||||||
syntax_error(tag, "Duplicate struct tag '#%.*s'", LIT(tag.string));
|
syntax_error(tag, "Duplicate struct tag '#%.*s'", LIT(tag.string));
|
||||||
}
|
}
|
||||||
no_copy = true;
|
no_copy = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user