Author: Armin Rigo <[email protected]>
Branch:
Changeset: r78434:f87b995d0d7a
Date: 2015-07-04 23:35 +0200
http://bitbucket.org/pypy/pypy/changeset/f87b995d0d7a/
Log: Translation fix
diff --git a/pypy/module/_cffi_backend/ffi_obj.py
b/pypy/module/_cffi_backend/ffi_obj.py
--- a/pypy/module/_cffi_backend/ffi_obj.py
+++ b/pypy/module/_cffi_backend/ffi_obj.py
@@ -546,10 +546,10 @@
# get in 'src_ctx' a NULL which translation doesn't consider to be constant
src_ctx = rffi.cast(parse_c_type.PCTX, 0)
r.__init__(space, src_ctx)
- return space.wrap(r)
+ return r
def W_FFIObject___new__(space, w_subtype, __args__):
- return make_plain_ffi_object(space, w_subtype)
+ return space.wrap(make_plain_ffi_object(space, w_subtype))
def make_CData(space):
return space.gettypefor(W_CData)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit