mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-07 05:27:13 +01:00
* only coerce the type of the leftover bytes of a record if the location
size doesn't match the number of remaining bytes
o prevents a second "single" field of a record getting interpreted as a
"cardinal"
git-svn-id: trunk@40569 -
This commit is contained in:
parent
ff002e2664
commit
93e39fb0cd
@ -951,7 +951,7 @@ implementation
|
||||
retdeflist[i]:=retloc^.def;
|
||||
dec(sizeleft,retloc^.def.size);
|
||||
end
|
||||
else
|
||||
else if retloc^.def.size<>sizeleft then
|
||||
begin
|
||||
case sizeleft of
|
||||
1:
|
||||
@ -970,8 +970,10 @@ implementation
|
||||
retdeflist[i]:=u56inttype;
|
||||
else
|
||||
retdeflist[i]:=retloc^.def;
|
||||
end;
|
||||
end;
|
||||
end
|
||||
end
|
||||
else
|
||||
retdeflist[i]:=retloc^.def;
|
||||
inc(i);
|
||||
retloc:=retloc^.next;
|
||||
until not assigned(retloc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user