mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +02:00
Fix CRC calculation for i8086 compact memory model
git-svn-id: trunk@34070 -
This commit is contained in:
parent
d4281d6111
commit
47f01eaa52
@ -219,7 +219,7 @@ var
|
|||||||
begin
|
begin
|
||||||
crc:=cardinal($ffffffff);
|
crc:=cardinal($ffffffff);
|
||||||
crc:=UpdateCrc32(crc,p^.size,sizeof(ptruint));
|
crc:=UpdateCrc32(crc,p^.size,sizeof(ptruint));
|
||||||
crc:=UpdateCrc32(crc,p^.calls,tracesize*sizeof(ptruint));
|
crc:=UpdateCrc32(crc,p^.calls,tracesize*sizeof(codepointer));
|
||||||
if p^.extra_info_size>0 then
|
if p^.extra_info_size>0 then
|
||||||
crc:=UpdateCrc32(crc,p^.extra_info^,p^.exact_info_size);
|
crc:=UpdateCrc32(crc,p^.extra_info^,p^.exact_info_size);
|
||||||
if add_tail then
|
if add_tail then
|
||||||
@ -239,7 +239,7 @@ var
|
|||||||
begin
|
begin
|
||||||
crc:=$ffffffff;
|
crc:=$ffffffff;
|
||||||
crc:=UpdateCrc32(crc,p^.size,sizeof(ptruint));
|
crc:=UpdateCrc32(crc,p^.size,sizeof(ptruint));
|
||||||
crc:=UpdateCrc32(crc,p^.calls,tracesize*sizeof(ptruint));
|
crc:=UpdateCrc32(crc,p^.calls,tracesize*sizeof(codepointer));
|
||||||
if p^.extra_info_size>0 then
|
if p^.extra_info_size>0 then
|
||||||
crc:=UpdateCrc32(crc,p^.extra_info^,p^.exact_info_size);
|
crc:=UpdateCrc32(crc,p^.extra_info^,p^.exact_info_size);
|
||||||
{ Check the whole of the whole allocation }
|
{ Check the whole of the whole allocation }
|
||||||
|
Loading…
Reference in New Issue
Block a user