Jelajahi Sumber

Add explicit typecast to avoid compilation failure with -Criot option

git-svn-id: trunk@39831 -
pierre 7 tahun lalu
induk
melakukan
8495967fc2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/fcl-net/src/ssockets.pp

+ 1 - 1
packages/fcl-net/src/ssockets.pp

@@ -1026,7 +1026,7 @@ begin
     result := FpFcntl(ASocket, F_SetFl, flags and (not O_NONBLOCK)) = 0;
 {$endif}
 {$ifdef windows}
-  result := ioctlsocket(ASocket,FIONBIO,@ABlockMode) = 0;
+  result := ioctlsocket(ASocket,longint(FIONBIO),@ABlockMode) = 0;
 {$endif}
 end;