Author: David Schneider <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit