args to call_object must be tuple or NULL

This commit is contained in:
Guido van Rossum 1995-07-12 02:22:06 +00:00
parent b89ab8c6d2
commit 1311e3ce73
3 changed files with 7 additions and 17 deletions

View file

@ -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);