[pypy-commit] cffi static-callback-embedding: fix

arigo pypy.commits at gmail.com
Tue Jan 12 12:42:09 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: static-callback-embedding
Changeset: r2569:c91000e0af90
Date: 2016-01-12 18:41 +0100
http://bitbucket.org/cffi/cffi/changeset/c91000e0af90/

Log:	fix

diff --git a/testing/embedding/thread-test.h b/testing/embedding/thread-test.h
--- a/testing/embedding/thread-test.h
+++ b/testing/embedding/thread-test.h
@@ -32,12 +32,12 @@
 
 int sem_post(sem_t *sem)
 {
-    return ReleaseSemaphore(*res, 1, NULL) ? 0 : -1;
+    return ReleaseSemaphore(*sem, 1, NULL) ? 0 : -1;
 }
 
 int sem_wait(sem_t *sem)
 {
-    WaitForSingleObject(*res, INFINITE);
+    WaitForSingleObject(*sem, INFINITE);
     return 0;
 }
 


More information about the pypy-commit mailing list