mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 05:19:14 +02:00
* use asInt64 instead of asInt to evaluate an Integer expression
git-svn-id: trunk@45052 -
This commit is contained in:
parent
bffe99f59f
commit
ae2801c707
@ -1329,12 +1329,12 @@ type
|
|||||||
|
|
||||||
function texprvalue.isBoolean: Boolean;
|
function texprvalue.isBoolean: Boolean;
|
||||||
var
|
var
|
||||||
i: integer;
|
i: int64;
|
||||||
begin
|
begin
|
||||||
result:=is_boolean(def);
|
result:=is_boolean(def);
|
||||||
if not result and is_integer(def) then
|
if not result and is_integer(def) then
|
||||||
begin
|
begin
|
||||||
i:=asInt;
|
i:=asInt64;
|
||||||
result:=(i=0)or(i=1);
|
result:=(i=0)or(i=1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user