Browse Source

* fix test for targets with FPC_COMP_IS_INT64 defined

(cherry picked from commit e80560e59c8abbdd5ec21c445fce25b3627aad3a)
florian 4 years ago
parent
commit
0a4d6df7b9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/fcl-json/tests/testcomps.pas

+ 4 - 0
packages/fcl-json/tests/testcomps.pas

@@ -659,7 +659,11 @@ end;
 constructor TCompComponent.Create(AOwner: TComponent);
 begin
   inherited;
+{$if defined(FPC_COMP_IS_INT64)}
+  F:=Round(4.56);
+{$else defined(FPC_COMP_IS_INT64)}
   F:=4.56;
+{$endif defined(FPC_COMP_IS_INT64)}
 end;
 
 { TCurrencyComponent }