mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
pastojs: fixed compile under pas2js
git-svn-id: trunk@40555 -
This commit is contained in:
parent
38a511a2f0
commit
2972be4ddd
@ -26,8 +26,8 @@ uses
|
||||
Classes, SysUtils;
|
||||
|
||||
const
|
||||
MinSafeIntDouble = -$10000000000000; // -4503599627370496
|
||||
MaxSafeIntDouble = $fffffffffffff; // 4503599627370495
|
||||
MinSafeIntDouble = -$fffffffffffff-1; // -4503599627370496
|
||||
MaxSafeIntDouble = $fffffffffffff; // 4503599627370495
|
||||
Type
|
||||
TJSType = (jstUNDEFINED,jstNull,jstBoolean,jstNumber,jstString,jstObject,jstReference,jstCompletion);
|
||||
|
||||
|
@ -340,8 +340,8 @@ const
|
||||
MinSafeIntSingle = -16777216;
|
||||
MaxSafeIntSingle = 16777216;
|
||||
MaskUIntSingle = $3fffff;
|
||||
MinSafeIntDouble = -$10000000000000; // -4503599627370496
|
||||
MaxSafeIntDouble = $fffffffffffff; // 4503599627370495
|
||||
MinSafeIntDouble = -$fffffffffffff-1; // -4503599627370496
|
||||
MaxSafeIntDouble = $fffffffffffff; // 4503599627370495
|
||||
MaskUIntDouble = $fffffffffffff;
|
||||
|
||||
type
|
||||
@ -1249,7 +1249,7 @@ begin
|
||||
reitLongWord: TResEvalInt(Result).Int:=not longword(TResEvalInt(Result).Int);
|
||||
reitLongInt: TResEvalInt(Result).Int:=not longint(TResEvalInt(Result).Int);
|
||||
reitUIntDouble: TResEvalInt(Result).Int:=(not TResEvalInt(Result).Int) and $fffffffffffff;
|
||||
reitIntDouble: TResEvalInt(Result).Int:=(not TResEvalInt(Result).Int) and $1fffffffffffff;
|
||||
reitIntDouble: {$ifdef fpc}TResEvalInt(Result).Int:=(not TResEvalInt(Result).Int) and $1fffffffffffff{$endif};
|
||||
else TResEvalInt(Result).Int:=not TResEvalInt(Result).Int;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user