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

bivab noreply at buildbot.pypy.org
Tue Aug 7 09:15:56 CEST 2012


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

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