summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
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);