summaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-12-12 02:36:13 +0000
committerUlrich Drepper <drepper@redhat.com>1997-12-12 02:36:13 +0000
commit116a3df36cf415a5cf936f65f26bced565bf27c8 (patch)
treed2061c548d3c9eaa57b331a42f75ab68c7c77125 /sysdeps/generic
parent755feef47c893a6437150360d6ae832c04005b4e (diff)
(__FDMASK): Cast constant 1 to be shifted correctly.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/gnu/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/gnu/types.h b/sysdeps/generic/gnu/types.h
index 85f17a4fb1..a08891c250 100644
--- a/sysdeps/generic/gnu/types.h
+++ b/sysdeps/generic/gnu/types.h
@@ -68,7 +68,7 @@ typedef long int __key_t; /* Type of an IPC key */
/* It's easier to assume 8-bit bytes than to get CHAR_BIT. */
#define __NFDBITS (sizeof (unsigned long int) * 8)
#define __FDELT(d) ((d) / __NFDBITS)
-#define __FDMASK(d) (1 << ((d) % __NFDBITS))
+#define __FDMASK(d) ((unsigned long int) 1 << ((d) % __NFDBITS))
typedef struct
{