From b3ae0c51a421efc39e23ab4bf4ebeb926af2c078 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 9 Sep 2006 18:12:07 +0000 Subject: [PATCH] * sizes2load handles OS_NO properly if one size is given git-svn-id: trunk@4586 - --- compiler/x86/cgx86.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index 86cb59b38a..3e83946400 100644 --- a/compiler/x86/cgx86.pas +++ b/compiler/x86/cgx86.pas @@ -270,6 +270,11 @@ unit cgx86; procedure tcgx86.sizes2load(s1,s2 : tcgsize; var op: tasmop; var s3: topsize); begin + { ensure to have always valid sizes } + if s1=OS_NO then + s1:=s2; + if s2=OS_NO then + s2:=s1; case s2 of OS_8,OS_S8 : if S1 in [OS_8,OS_S8] then