mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
* fixed memory leak in conversion of realconstn to currency
git-svn-id: trunk@7630 -
This commit is contained in:
parent
9b198fb1d7
commit
8d13899d84
@ -1086,10 +1086,12 @@ implementation
|
||||
if left.nodetype=realconstn then
|
||||
result:=cordconstnode.create(round(trealconstnode(left).value_real),resultdef,false)
|
||||
else
|
||||
begin
|
||||
result:=ccallnode.createinternres('fpc_round_real',
|
||||
ccallparanode.create(left,nil),resultdef);
|
||||
left:=nil;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function ttypeconvnode.typecheck_real_to_real : tnode;
|
||||
|
Loading…
Reference in New Issue
Block a user