[newlib-cygwin] Fix typoed comparison
Corinna Vinschen
corinna@sourceware.org
Sun Mar 20 11:20:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0611132f045ee705ab8f85d0679aeacde0720f33
commit 0611132f045ee705ab8f85d0679aeacde0720f33
Author: Peter Foley <pefoley2@pefoley.com>
Date: Sat Mar 19 13:45:54 2016 -0400
Fix typoed comparison
winsup/cygwin/ChangeLog
* thread.cc (semaphore::open): Fix mistaken conditional.
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diff:
---
winsup/cygwin/thread.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 531d6a8..05757ac 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 ();
More information about the Cygwin-cvs
mailing list