0001782: negative const values don't compile
git-svn-id: http://code.remobjects.com/svn/pascalscript@4 5c9d2617-0215-0410-a2ee-e80e04d1c6d8
This commit is contained in:
parent
a20beb13cf
commit
c13dc29ea3
@ -11818,6 +11818,10 @@ function TPSPascalCompiler.ReadConstant(FParser: TPSPascalParser; StopOn: TPSPas
|
|||||||
{$IFNDEF PS_NOINT64}
|
{$IFNDEF PS_NOINT64}
|
||||||
bts64: p1.ts64 := -p1.ts64;
|
bts64: p1.ts64 := -p1.ts64;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
btDouble: p1.tdouble := - p1.tDouble;
|
||||||
|
btSingle: p1.tsingle := - p1.tsingle;
|
||||||
|
btCurrency: p1.tcurrency := - p1.tcurrency;
|
||||||
|
btExtended: p1.textended := - p1.textended;
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
MakeError('', ecTypeMismatch, '');
|
MakeError('', ecTypeMismatch, '');
|
||||||
|
Loading…
Reference in New Issue
Block a user