2
0
Эх сурвалжийг харах

* fix for 64-bit signed<->unsigned issue, bug #12841

git-svn-id: trunk@12418 -
marco 16 жил өмнө
parent
commit
a88ebff6dd

+ 1 - 1
rtl/unix/genfdset.inc

@@ -55,7 +55,7 @@ function fpFD_ISSET(fdno:cint;const nset : TFDSet): cint;
 Begin
 Begin
    if (fdno<0) or (fdno >  FD_MAXFDSET) Then
    if (fdno<0) or (fdno >  FD_MAXFDSET) Then
        exit(-1);
        exit(-1);
-    if ((nset[(fdno) shr ln2bitsinword]) and (1 shl ((fdno) and ln2bitmask)))>0 Then
+    if ((nset[fdno shr ln2bitsinword]) and (culong(1) shl ((fdno) and ln2bitmask)))>0 Then
      fpFD_ISSET:=1
      fpFD_ISSET:=1
     else
     else
      fpFD_ISSET:=0;
      fpFD_ISSET:=0;