Author: Armin Rigo <ar...@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) && _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit