[pypy-svn] r50363 - pypy/dist/pypy/rlib
ac at codespeak.net
ac at codespeak.net
Sat Jan 5 22:35:59 CET 2008
Author: ac
Date: Sat Jan 5 22:35:58 2008
New Revision: 50363
Modified:
pypy/dist/pypy/rlib/rsocket.py
Log:
Make _socket annotate on 64 bit (still 53 errors when rtyping).
Modified: pypy/dist/pypy/rlib/rsocket.py
==============================================================================
--- pypy/dist/pypy/rlib/rsocket.py (original)
+++ pypy/dist/pypy/rlib/rsocket.py Sat Jan 5 22:35:58 2008
@@ -1125,7 +1125,7 @@
rffi.setintfield(hints, 'c_ai_flags' , flags)
# XXX need to lock around getaddrinfo() calls?
p_res = lltype.malloc(rffi.CArray(_c.addrinfo_ptr), 1, flavor='raw')
- error = _c.getaddrinfo(host, port_or_service, hints, p_res)
+ error = intmask(_c.getaddrinfo(host, port_or_service, hints, p_res))
res = p_res[0]
lltype.free(p_res, flavor='raw')
lltype.free(hints, flavor='raw')
@@ -1177,9 +1177,9 @@
serv = lltype.malloc(rffi.CCHARP.TO, NI_MAXSERV, flavor='raw')
try:
addr = address.lock()
- error =_c.getnameinfo(addr, address.addrlen,
- host, NI_MAXHOST,
- serv, NI_MAXSERV, flags)
+ error = intmask(_c.getnameinfo(addr, address.addrlen,
+ host, NI_MAXHOST,
+ serv, NI_MAXSERV, flags))
address.unlock()
if error:
raise GAIError(error)
More information about the pypy-svn
mailing list