From b072150d7f737728236ed819bc17383411e4eb86 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 7 Sep 1996 15:55:27 +0000 Subject: Stupid bug: complex(x,y) would yield x+xj --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c337f1c..c1c3ed9 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -318,7 +318,7 @@ builtin_complex(self, args) else if (is_complexobject(i)) ci = ((complexobject*)i)->cval; else { - tmp = (*nbr->nb_float)(r); + tmp = (*nbr->nb_float)(i); if (tmp == NULL) return NULL; ci.real = getfloatvalue(tmp); -- cgit v0.12