Browse Source

Quick.Value fpc fix

Unknown 6 years ago
parent
commit
af69d0cb00
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Quick.Value.pas

+ 5 - 1
Quick.Value.pas

@@ -7,7 +7,7 @@
   Author      : Kike Pérez
   Author      : Kike Pérez
   Version     : 1.4
   Version     : 1.4
   Created     : 07/01/2019
   Created     : 07/01/2019
-  Modified    : 11/03/2019
+  Modified    : 14/03/2019
 
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
 
@@ -724,7 +724,11 @@ end;
 
 
 procedure TFlexValue.SetAsInterface(const Value: IInterface);
 procedure TFlexValue.SetAsInterface(const Value: IInterface);
 begin
 begin
+  {$IFNDEF FPC}
   fDataIntf := Value;
   fDataIntf := Value;
+  {$ELSE}
+  fDataIntf := Pointer(Value);
+  {$ENDIF}
   fDataType := TValueDataType.dtInterface;
   fDataType := TValueDataType.dtInterface;
 end;
 end;