瀏覽代碼

Add explicit typecast to avoid compilation failure with -Criot option

git-svn-id: trunk@39831 -
pierre 7 年之前
父節點
當前提交
8495967fc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;