Kaydet (Commit) b072150d authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 87755a24
......@@ -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);
......
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