[pypy-commit] pypy ffi-backend: (fijal, arigo) Next test.
arigo
noreply at buildbot.pypy.org
Fri Jun 22 19:06:05 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r55758:8a4c74f26397
Date: 2012-06-22 19:05 +0200
http://bitbucket.org/pypy/pypy/changeset/8a4c74f26397/
Log: (fijal, arigo) Next test.
diff --git a/pypy/module/_ffi_backend/ctypeobj.py b/pypy/module/_ffi_backend/ctypeobj.py
--- a/pypy/module/_ffi_backend/ctypeobj.py
+++ b/pypy/module/_ffi_backend/ctypeobj.py
@@ -221,6 +221,11 @@
value = misc.read_raw_float_data(cdata, self.size)
return self.space.wrap(value)
+ def convert_from_object(self, cdata, w_ob):
+ space = self.space
+ value = space.float_w(space.float(w_ob))
+ misc.write_raw_float_data(cdata, value, self.size)
+
W_CType.typedef = TypeDef(
'_ffi_backend.CTypeDescr',
More information about the pypy-commit
mailing list