summaryrefslogtreecommitdiff
path: root/compiler/aoptobj.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-11-12 20:55:06 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-11-12 20:55:06 +0000
commit75834f96dc1ab2d11e0b5ef98a09e28d26f1b5ed (patch)
treeaaf152fe17ac71de5f060a9d361ed9d41fc248f4 /compiler/aoptobj.pas
parent8ac1bc2fe31c1b788b3cec48cdc4b4acef4a5929 (diff)
downloadfpc-75834f96dc1ab2d11e0b5ef98a09e28d26f1b5ed.tar.gz
* fixed wrongly fix of r11444 in r12049
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12062 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/aoptobj.pas')
-rw-r--r--compiler/aoptobj.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/aoptobj.pas b/compiler/aoptobj.pas
index 39d5eb80d3..d8dd73c9fc 100644
--- a/compiler/aoptobj.pas
+++ b/compiler/aoptobj.pas
@@ -890,8 +890,8 @@ Unit AoptObj;
{$endif}
function tAOptObj.getlabelwithsym(sym: tasmlabel): tai;
begin
- if (aword(sym.labelnr) >= labelinfo^.lowlabel) and
- (aword(sym.labelnr) <= labelinfo^.highlabel) then { range check, a jump can go past an assembler block! }
+ if (int64(sym.labelnr) >= int64(labelinfo^.lowlabel)) and
+ (int64(sym.labelnr) <= int64(labelinfo^.highlabel)) then { range check, a jump can go past an assembler block! }
getlabelwithsym := labelinfo^.labeltable^[sym.labelnr-labelinfo^.lowlabel].paiobj
else
getlabelwithsym := nil;