From: Stefan Behnel Date: Fri, 16 Apr 2010 06:43:24 +0000 (+0200) Subject: fix PyBytes_GET_SIZE usage X-Git-Tag: 0.13.beta0~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9876b7b2522dd0d8f0f40ec7f8b3c9fac28137e;p=cython.git fix PyBytes_GET_SIZE usage --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9fb76af9..4f104a9c 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6107,7 +6107,7 @@ class CoerceToBooleanNode(CoercionNode): _special_builtins = { Builtin.list_type : 'PyList_GET_SIZE', Builtin.tuple_type : 'PyTuple_GET_SIZE', - Builtin.bytes_type : 'PyBytes_GET_SIZE', + Builtin.bytes_type : '__Pyx_PyBytes_GET_SIZE', Builtin.unicode_type : 'PyUnicode_GET_SIZE', }