Răsfoiți Sursa

* fix test for targets with FPC_COMP_IS_INT64 defined

florian 3 ani în urmă
părinte
comite
5d9968366b
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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 }