From: Robert Bradshaw Date: Wed, 9 May 2007 07:31:34 +0000 (-0700) Subject: fix semantics of cmp() -- should not be a bint X-Git-Tag: 0.9.6.14~29^2~184 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7fbdbd53085cc912c029f8a853f818de24dae6d2;p=cython.git fix semantics of cmp() -- should not be a bint --- 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],