Explorar o código

* fix test for targets with FPC_COMP_IS_INT64 defined

florian %!s(int64=3) %!d(string=hai) anos
pai
achega
5d9968366b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 }