Stupid bug: complex(x,y) would yield x+xj

This commit is contained in:
Guido van Rossum 1996-09-07 15:55:27 +00:00
parent 87755a24c2
commit b072150d7f
1 changed files with 1 additions and 1 deletions

View File

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