From: Peter Foley Date: Sat, 19 Mar 2016 17:45:54 +0000 (-0400) Subject: Fix typoed comparison X-Git-Tag: newlib-2_4_0~60 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=0611132f045ee705ab8f85d0679aeacde0720f33;p=newlib-cygwin.git Fix typoed comparison winsup/cygwin/ChangeLog * thread.cc (semaphore::open): Fix mistaken conditional. Signed-off-by: Peter Foley --- diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 531d6a846..05757ac58 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -3746,7 +3746,7 @@ semaphore::open (unsigned long long hash, LUID luid, int fd, int oflag, for (semaphore *sema = semaphores.head; sema; sema = sema->next) if (sema->fd >= 0 && sema->hash == hash && sema->luid.HighPart == luid.HighPart - && sema->luid.LowPart == sema->luid.LowPart) + && sema->luid.LowPart == luid.LowPart) { wasopen = true; semaphores.mx.unlock ();