mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 11:10:36 +01:00
* fixed type conversion test for open arrays: the to and from fields where
exchanged which leads under certain circumstances to problems when
passing arrays of classes/class references as open array parameters
This commit is contained in:
parent
64b3cac231
commit
0fb3ed4ad3
@ -275,8 +275,8 @@ implementation
|
||||
b:=1;
|
||||
end
|
||||
else
|
||||
if isconvertable(parraydef(def_to)^.elementtype.def,
|
||||
parraydef(def_from)^.elementtype.def,hct,nothingn,false)<>0 then
|
||||
if isconvertable(parraydef(def_from)^.elementtype.def,
|
||||
parraydef(def_to)^.elementtype.def,hct,nothingn,false)<>0 then
|
||||
begin
|
||||
doconv:=hct;
|
||||
b:=2;
|
||||
@ -901,7 +901,12 @@ implementation
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.59 2000-02-18 16:13:29 florian
|
||||
Revision 1.60 2000-05-16 16:01:03 florian
|
||||
* fixed type conversion test for open arrays: the to and from fields where
|
||||
exchanged which leads under certain circumstances to problems when
|
||||
passing arrays of classes/class references as open array parameters
|
||||
|
||||
Revision 1.59 2000/02/18 16:13:29 florian
|
||||
* optimized ansistring compare with ''
|
||||
* fixed 852
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user