mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
args to call_object must be tuple or NULL
This commit is contained in:
parent
b89ab8c6d2
commit
1311e3ce73
3 changed files with 7 additions and 17 deletions
|
|
@ -553,7 +553,7 @@ cmp(v, w)
|
|||
return cmpobject(* (object **) v, * (object **) w);
|
||||
|
||||
/* Call the user-supplied comparison function */
|
||||
t = mkvalue("OO", * (object **) v, * (object **) w);
|
||||
t = mkvalue("(OO)", * (object **) v, * (object **) w);
|
||||
if (t == NULL)
|
||||
return 0;
|
||||
res = call_object(comparefunc, t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue