[pypy-commit] pypy arm-backend-2: convert handle to int before casting to SEM_T instead of uint

bivab noreply at buildbot.pypy.org
Mon Aug 6 14:57:11 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r56596:4fda22791cc7
Date: 2012-08-06 14:47 +0200
http://bitbucket.org/pypy/pypy/changeset/4fda22791cc7/

Log:	convert handle to int before casting to SEM_T instead of uint

	fixes test_semaphore_rebuild on armhf

diff --git a/pypy/module/_multiprocessing/interp_semaphore.py b/pypy/module/_multiprocessing/interp_semaphore.py
--- a/pypy/module/_multiprocessing/interp_semaphore.py
+++ b/pypy/module/_multiprocessing/interp_semaphore.py
@@ -190,7 +190,7 @@
             lltype.free(now, flavor='raw')
 
     def handle_w(space, w_handle):
-        return rffi.cast(SEM_T, space.uint_w(w_handle))
+        return rffi.cast(SEM_T, space.int_w(w_handle))
 
 class CounterState:
     def __init__(self, space):


More information about the pypy-commit mailing list