* fixed bug where derefs with an index 65535 were not read correctly

from ppu files

git-svn-id: trunk@5594 -
This commit is contained in:
Jonas Maebe 2006-12-14 20:21:05 +00:00
parent 9e6d19a494
commit 22a372f10b

View File

@ -646,7 +646,7 @@ implementation
var
pm : tmodule;
typ : tdereftype;
idx : word;
idx : longint;
i : aint;
len : byte;
data : array[0..255] of byte;
@ -680,13 +680,13 @@ implementation
end;
deref_defid :
begin
idx:=(data[i] shl 24) or (data[i+1] shl 16) or (data[i+2] shl 8) or data[i+3];
idx:=longint((data[i] shl 24) or (data[i+1] shl 16) or (data[i+2] shl 8) or data[i+3]);
inc(i,4);
result:=tdef(pm.deflist[idx]);
end;
deref_symid :
begin
idx:=(data[i] shl 24) or (data[i+1] shl 16) or (data[i+2] shl 8) or data[i+3];
idx:=longint((data[i] shl 24) or (data[i+1] shl 16) or (data[i+2] shl 8) or data[i+3]);
inc(i,4);
result:=tsym(pm.symlist[idx]);
end;