From 7fbdbd53085cc912c029f8a853f818de24dae6d2 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 9 May 2007 00:31:34 -0700 Subject: [PATCH] fix semantics of cmp() -- should not be a bint --- Cython/Compiler/Symtab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 4abec146..515225d9 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -484,7 +484,7 @@ class BuiltinScope(Scope): builtin_functions = { "hasattr": ["PyObject_HasAttrString", c_bint_type, (py_object_type, c_char_ptr_type)], - "cmp": ["PyObject_Compare", c_bint_type, (py_object_type, py_object_type), None, True], + "cmp": ["PyObject_Compare", c_int_type, (py_object_type, py_object_type), None, True], "repr": ["PyObject_Repr", py_object_type, (py_object_type, ), 0], # "str": ["PyObject_Str", py_object_type, (py_object_type, ), 0], "unicode": ["PyObject_Unicode", py_object_type, (py_object_type, ), 0], -- 2.26.2