Author: David Schneider <david.schnei...@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):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to