瀏覽代碼

* fixed (harmless) range error in 64 bit BSD-based RTLs

git-svn-id: trunk@33736 -
Jonas Maebe 9 年之前
父節點
當前提交
60d75fa97e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/unix/genfdset.inc

+ 1 - 1
rtl/unix/genfdset.inc

@@ -46,7 +46,7 @@ function fpfdfillset(var nset : TFDSet):cint;
 var i :longint;
 var i :longint;
 
 
 Begin
 Begin
-  for i:=0 to wordsinfdset-1 DO nset[i]:=Culong(NOT 0);
+  for i:=0 to wordsinfdset-1 DO nset[i]:=Culong((NOT 0) and ln2bitmask);
   fpfdfillset:=0;
   fpfdfillset:=0;
 End;
 End;