[pypy-svn] r77254 - pypy/branch/fast-forward/pypy/module/_multiprocessing
afa at codespeak.net
afa at codespeak.net
Tue Sep 21 21:39:48 CEST 2010
Author: afa
Date: Tue Sep 21 21:39:47 2010
New Revision: 77254
Modified:
pypy/branch/fast-forward/pypy/module/_multiprocessing/interp_connection.py
Log:
Fix test on 64bit platform
Modified: pypy/branch/fast-forward/pypy/module/_multiprocessing/interp_connection.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_multiprocessing/interp_connection.py (original)
+++ pypy/branch/fast-forward/pypy/module/_multiprocessing/interp_connection.py Tue Sep 21 21:39:47 2010
@@ -2,7 +2,6 @@
from pypy.interpreter.typedef import TypeDef, GetSetProperty
from pypy.interpreter.gateway import interp2app, unwrap_spec
from pypy.rpython.lltypesystem import rffi, lltype
-from pypy.rlib.rarithmetic import r_uint
import sys, os
READABLE = 1
@@ -206,7 +205,7 @@
# "header" and the "body" of the message and send them at once.
message = lltype.malloc(rffi.CCHARP.TO, size + 4, flavor='raw')
try:
- rffi.cast(rffi.UINTP, message)[0] = r_uint(size) # XXX htonl!
+ rffi.cast(rffi.UINTP, message)[0] = rffi.r_uint(size) # XXX htonl!
i = size - 1
while i >= 0:
message[4 + i] = buffer[offset + i]
More information about the Pypy-commit
mailing list