diff options
Diffstat (limited to 'misc/sys')
-rw-r--r-- | misc/sys/select.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/sys/select.h b/misc/sys/select.h index fd13bab41a..941588d9c4 100644 --- a/misc/sys/select.h +++ b/misc/sys/select.h @@ -58,7 +58,7 @@ typedef long int __fd_mask; /* It's easier to assume 8-bit bytes than to get CHAR_BIT. */ #define __NFDBITS (8 * (int) sizeof (__fd_mask)) #define __FD_ELT(d) ((d) / __NFDBITS) -#define __FD_MASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) +#define __FD_MASK(d) ((__fd_mask) (1UL << ((d) % __NFDBITS))) /* fd_set for select and pselect. */ typedef struct |