Commit 7fbdbd53 authored by Robert Bradshaw's avatar Robert Bradshaw

fix semantics of cmp() -- should not be a bint

parent 6ebf941f
......@@ -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],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment