mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:33:17 +02:00
* array of const for currency, classes and interfaces fixed
git-svn-id: trunk@11 -
This commit is contained in:
parent
c76ede86f8
commit
d4194bce53
@ -790,6 +790,9 @@ implementation
|
|||||||
end;
|
end;
|
||||||
floatdef :
|
floatdef :
|
||||||
begin
|
begin
|
||||||
|
if is_currency(lt) then
|
||||||
|
vtype:=vtCurrency
|
||||||
|
else
|
||||||
vtype:=vtExtended;
|
vtype:=vtExtended;
|
||||||
freetemp:=false;
|
freetemp:=false;
|
||||||
vaddr:=true;
|
vaddr:=true;
|
||||||
@ -813,7 +816,14 @@ implementation
|
|||||||
classrefdef :
|
classrefdef :
|
||||||
vtype:=vtClass;
|
vtype:=vtClass;
|
||||||
objectdef :
|
objectdef :
|
||||||
vtype:=vtObject;
|
if is_interface(lt) then
|
||||||
|
vtype:=vtInterface
|
||||||
|
else if is_class(lt) then
|
||||||
|
vtype:=vtClass
|
||||||
|
else if is_object(lt) then
|
||||||
|
vtype:=vtObject
|
||||||
|
else
|
||||||
|
internalerror(200505171);
|
||||||
stringdef :
|
stringdef :
|
||||||
begin
|
begin
|
||||||
if is_shortstring(lt) then
|
if is_shortstring(lt) then
|
||||||
|
@ -983,6 +983,7 @@ implementation
|
|||||||
hp.left:=ctypeconvnode.create(hp.left,s32inttype);
|
hp.left:=ctypeconvnode.create(hp.left,s32inttype);
|
||||||
end;
|
end;
|
||||||
floatdef :
|
floatdef :
|
||||||
|
if not(is_currency(hp.left.resulttype.def)) then
|
||||||
hp.left:=ctypeconvnode.create(hp.left,pbestrealtype^);
|
hp.left:=ctypeconvnode.create(hp.left,pbestrealtype^);
|
||||||
procvardef :
|
procvardef :
|
||||||
hp.left:=ctypeconvnode.create(hp.left,voidpointertype);
|
hp.left:=ctypeconvnode.create(hp.left,voidpointertype);
|
||||||
|
Loading…
Reference in New Issue
Block a user