summaryrefslogtreecommitdiff
path: root/src/thread/pthread_rwlock_init.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-23 22:24:33 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-23 22:24:33 -0400
commitc41a76f58ce0238172effe982f2cee7bbd2a60a4 (patch)
treed5786c6de0e3dbc3929c81ae6221d8737918ceb4 /src/thread/pthread_rwlock_init.c
parent1587224ed60aa38b7a26c5eaf692f1f1ab525afd (diff)
downloadmusl-c41a76f58ce0238172effe982f2cee7bbd2a60a4.tar.gz
musl-c41a76f58ce0238172effe982f2cee7bbd2a60a4.tar.bz2
musl-c41a76f58ce0238172effe982f2cee7bbd2a60a4.tar.xz
musl-c41a76f58ce0238172effe982f2cee7bbd2a60a4.zip
FD_ISSET must return an int. this is the easiest way.
casting to int would not be correct because high bits could be lost. mapping the high bits down onto low bits would be costlier in the common case where the result is just used in a conditional. changing the type of the bit array elements to int would permute the order of the bit array on 64-bit big endian systems, so that's not an option either.
Diffstat (limited to 'src/thread/pthread_rwlock_init.c')
0 files changed, 0 insertions, 0 deletions