Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 4234:7bf71a839661 legacy-trunk
Stupid bug: complex(x,y) would yield x+xj
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 07 Sep 1996 15:55:27 +0000 |
| parents | 18c32714f8ba |
| children | 3b3f7c3f6da2 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Sat Sep 07 00:59:43 1996 +0000 +++ b/Python/bltinmodule.c Sat Sep 07 15:55:27 1996 +0000 @@ -318,7 +318,7 @@ 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);
