* fix laststatement()

This commit is contained in:
peter 2005-01-31 16:15:17 +00:00
parent 9cf82cd7f6
commit be1808953c

View File

@ -218,7 +218,7 @@ implementation
function laststatement(block:tblocknode):tstatementnode;
begin
result:=tstatementnode(block.left);
while assigned(result) do
while assigned(result) and assigned(result.right) do
result:=tstatementnode(result.right);
end;
@ -1026,7 +1026,10 @@ begin
end.
{
$Log$
Revision 1.92 2004-12-03 16:04:47 peter
Revision 1.93 2005-01-31 16:15:17 peter
* fix laststatement()
Revision 1.92 2004/12/03 16:04:47 peter
* use tlocation for tempnodes
Revision 1.91 2004/11/28 19:16:53 jonas