mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:29:24 +02:00
* fix for 64-bit signed<->unsigned issue, bug #12841
git-svn-id: trunk@12418 -
This commit is contained in:
parent
7cd20771b0
commit
a88ebff6dd
@ -55,7 +55,7 @@ function fpFD_ISSET(fdno:cint;const nset : TFDSet): cint;
|
||||
Begin
|
||||
if (fdno<0) or (fdno > FD_MAXFDSET) Then
|
||||
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
|
||||
else
|
||||
fpFD_ISSET:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user