mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-22 05:38:13 +02:00
compiler: fix wrong typecast
git-svn-id: trunk@14545 -
This commit is contained in:
parent
4ddebcbf1c
commit
f25c21c287
@ -209,7 +209,7 @@ implementation
|
||||
need to be in the initfinal table (PFV) }
|
||||
block:=statement_block(_INITIALIZATION);
|
||||
{ optimize empty initialization block away }
|
||||
if (tstatementnode(block).left=nil) then
|
||||
if (block.nodetype=blockn) and (tblocknode(block).left=nil) then
|
||||
FreeAndNil(block)
|
||||
else
|
||||
if not islibrary then
|
||||
@ -224,7 +224,7 @@ implementation
|
||||
begin
|
||||
block:=statement_block(_FINALIZATION);
|
||||
{ optimize empty finalization block away }
|
||||
if (tstatementnode(block).left=nil) then
|
||||
if (block.nodetype=blockn) and (tblocknode(block).left=nil) then
|
||||
FreeAndNil(block)
|
||||
else
|
||||
if not islibrary then
|
||||
|
Loading…
Reference in New Issue
Block a user