diff options
| author | olimpiu <42330+olimpiu@users.noreply.github.com> | 2024-09-30 16:16:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-30 16:16:50 -0400 |
| commit | a444dc049273fcc03accec2473a1011ec41bf4cf (patch) | |
| tree | 01ab32f44b20ce7c810695676aa56aaf60a73220 /src | |
| parent | 8670a24655a473a481ddce0b00b84511076c6a68 (diff) | |
Fix Struct_Type breakage following Odin changes
#field_align has been deprecated in favor of #min_field_align in https://github.com/odin-lang/Odin/commit/a7d7c92a5302a9d0db503af37fe96c737a536544
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index c2971df..3121171 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1574,9 +1574,9 @@ visit_expr :: proc( document = cons_with_nopl(document, visit_expr(p, v.align)) } - if v.field_align != nil { + if v.min_field_align != nil { document = cons_with_nopl(document, text("#field_align")) - document = cons_with_nopl(document, visit_expr(p, v.field_align)) + document = cons_with_nopl(document, visit_expr(p, v.min_field_align)) } document = cons_with_nopl(document, visit_where_clauses(p, v.where_clauses)) |