From 6ecfb1da4406ecda2cfa28b8ff4160e6a5e44bf4 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 20 Feb 2000 15:01:37 +0000 Subject: [PATCH] Followup to previous commit; change fd_mask from signed to unsigned as it should have been to start with. The implications of that are not pleasant when combined with >> as it breaks on multiples of NFDBITS. Right shifting of a signed value fills with a copy of the sign bit, not a zero. Reported by: bde --- sys/sys/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/types.h b/sys/sys/types.h index fadbb7de09d..f4bef46c8c5 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -167,7 +167,7 @@ typedef _BSD_TIMER_T_ timer_t; #define FD_SETSIZE 1024 #endif -typedef long fd_mask; +typedef unsigned long fd_mask; #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ #ifndef howmany