OSDN Git Service

fix harmless-by-chance typo in priority inheritance mutex code
authorRich Felker <dalias@aerifal.cx>
Mon, 1 Apr 2019 22:51:50 +0000 (18:51 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 1 Apr 2019 22:51:50 +0000 (18:51 -0400)
commit8ee0ca0ce6cc04f3283e5391773108376ba5b4aa
treedce36fdd1e20799795424a0a6add957be8bea195
parent54ca677983d47529bab8752315ac1a2b49888870
fix harmless-by-chance typo in priority inheritance mutex code

commit 54ca677983d47529bab8752315ac1a2b49888870 inadvertently
introduced bitwise and where logical and was intended. since the
right-hand operand is always 0 or -1 whenever the left-hand operand is
nonzero, the behavior happened to be equivalent.
src/thread/pthread_mutex_trylock.c