Author: Armin Rigo <[email protected]>
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):
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to