[pypy-commit] cffi python3-port: Disable this special case for now

arigo noreply at buildbot.pypy.org
Sun Aug 12 17:31:13 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: python3-port
Changeset: r811:85db4f49adbc
Date: 2012-08-12 14:53 +0200
http://bitbucket.org/cffi/cffi/changeset/85db4f49adbc/

Log:	Disable this special case for now

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -721,12 +721,14 @@
         return (unsigned char)(PyBytes_AS_STRING(init)[0]);
     }
 #if PY_MAJOR_VERSION >= 3
+/*  XXX?
     if (PyLong_Check(init)) {
         long value = PyLong_AsLong(init);
         if (value >= 0 && value < 256) {
             return (unsigned char)value;
         }
     }
+    */
 #endif
     if (CData_Check(init) &&
            (((CDataObject *)init)->c_type->ct_flags & CT_PRIMITIVE_CHAR) &&


More information about the pypy-commit mailing list