mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 13:29:26 +01:00
* fix getlabelwithsym for 64 bit hosts and 32 bit targets
git-svn-id: trunk@12049 -
This commit is contained in:
parent
a3a66ba74d
commit
74efea399e
@ -890,8 +890,8 @@ Unit AoptObj;
|
||||
{$endif}
|
||||
function tAOptObj.getlabelwithsym(sym: tasmlabel): tai;
|
||||
begin
|
||||
if (sym.labelnr >= aint(labelinfo^.lowlabel)) and
|
||||
(sym.labelnr <= aint(labelinfo^.highlabel)) then { range check, a jump can go past an assembler block! }
|
||||
if (aword(sym.labelnr) >= labelinfo^.lowlabel) and
|
||||
(aword(sym.labelnr) <= labelinfo^.highlabel) then { range check, a jump can go past an assembler block! }
|
||||
getlabelwithsym := labelinfo^.labeltable^[sym.labelnr-labelinfo^.lowlabel].paiobj
|
||||
else
|
||||
getlabelwithsym := nil;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user