[pypy-commit] pypy ffi-backend: Next test

arigo noreply at buildbot.pypy.org
Fri Jun 22 19:17:53 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r55759:73cf8e76e04b
Date: 2012-06-22 19:09 +0200
http://bitbucket.org/pypy/pypy/changeset/73cf8e76e04b/

Log:	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
@@ -136,6 +136,11 @@
         w_cdata.write_raw_integer_data(value)
         return w_cdata
 
+    def convert_from_object(self, cdata, w_ob):
+        value = misc.as_unsigned_long_long(self.space, w_ob, strict=True)
+        misc.write_raw_integer_data(cdata, value, self.size)
+        # xxx overflow
+
 
 class W_CTypePrimitiveChar(W_CTypePrimitive):
 


More information about the pypy-commit mailing list