diff --git a/compiler/x86/agx86int.pas b/compiler/x86/agx86int.pas index fb63c485c0..ba935a32b2 100644 --- a/compiler/x86/agx86int.pas +++ b/compiler/x86/agx86int.pas @@ -507,8 +507,8 @@ implementation { CAUSES PROBLEMS WITH THE SEGMENT DEFINITION } { SEGMENT DEFINITION SHOULD MATCH TYPE OF ALIGN } { HERE UNDER TASM! } - if tai_align(hp).aligntype>1 then - AsmWriteLn(#9'ALIGN '+tostr(tai_align(hp).aligntype)); + if tai_align_abstract(hp).aligntype>1 then + AsmWriteLn(#9'ALIGN '+tostr(tai_align_abstract(hp).aligntype)); end; ait_datablock : begin