fix PyBytes_GET_SIZE usage
authorStefan Behnel <scoder@users.berlios.de>
Fri, 16 Apr 2010 06:43:24 +0000 (08:43 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 16 Apr 2010 06:43:24 +0000 (08:43 +0200)
Cython/Compiler/ExprNodes.py

index 9fb76af9bee170eb7aa35d07f536da00b3df21f5..4f104a9c117963b52307f0d4d7b6a353a8589b88 100755 (executable)
@@ -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',
         }