mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 05:59:08 +02:00
* 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:
parent
9e6d19a494
commit
22a372f10b
@ -646,7 +646,7 @@ implementation
|
|||||||
var
|
var
|
||||||
pm : tmodule;
|
pm : tmodule;
|
||||||
typ : tdereftype;
|
typ : tdereftype;
|
||||||
idx : word;
|
idx : longint;
|
||||||
i : aint;
|
i : aint;
|
||||||
len : byte;
|
len : byte;
|
||||||
data : array[0..255] of byte;
|
data : array[0..255] of byte;
|
||||||
@ -680,13 +680,13 @@ implementation
|
|||||||
end;
|
end;
|
||||||
deref_defid :
|
deref_defid :
|
||||||
begin
|
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);
|
inc(i,4);
|
||||||
result:=tdef(pm.deflist[idx]);
|
result:=tdef(pm.deflist[idx]);
|
||||||
end;
|
end;
|
||||||
deref_symid :
|
deref_symid :
|
||||||
begin
|
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);
|
inc(i,4);
|
||||||
result:=tsym(pm.symlist[idx]);
|
result:=tsym(pm.symlist[idx]);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user