summaryrefslogtreecommitdiff
path: root/compiler/aoptobj.pas
diff options
context:
space:
mode:
authoryury <yury@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-23 11:17:27 +0000
committeryury <yury@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-23 11:17:27 +0000
commit4e21a940b768683fd42a277a628f1941073a2eaa (patch)
tree36fb056dc75877b59760d2c57c0d56842b76f631 /compiler/aoptobj.pas
parent9cbb133a1d73495a8a6e98be4c6e426c2a2a5834 (diff)
downloadfpc-4e21a940b768683fd42a277a628f1941073a2eaa.tar.gz
* Fixed 'mixed signed/unsigned' and pointer conversion warnings.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@11444 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 fd3e08e4ce..33ca522e55 100644
--- a/compiler/aoptobj.pas
+++ b/compiler/aoptobj.pas
@@ -884,8 +884,8 @@ Unit AoptObj;
{$endif}
function tAOptObj.getlabelwithsym(sym: tasmlabel): tai;
begin
- if (sym.labelnr >= labelinfo^.lowlabel) and
- (sym.labelnr <= labelinfo^.highlabel) then { range check, a jump can go past an assembler block! }
+ if (sym.labelnr >= aint(labelinfo^.lowlabel)) and
+ (sym.labelnr <= aint(labelinfo^.highlabel)) then { range check, a jump can go past an assembler block! }
getlabelwithsym := labelinfo^.labeltable^[sym.labelnr-labelinfo^.lowlabel].paiobj
else
getlabelwithsym := nil;