From 01b877d16d791b4b03798c2aa77e39a3d98a0673 Mon Sep 17 00:00:00 2001 From: Damien George <damien.p.george@gmail.com> Date: Thu, 27 Mar 2014 23:35:31 +0000 Subject: [PATCH] py: Fix typo printing complex numbers. --- py/objcomplex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/objcomplex.c b/py/objcomplex.c index feec9c11a..91f6b081e 100644 --- a/py/objcomplex.c +++ b/py/objcomplex.c @@ -34,7 +34,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void * } else { format_float(o->real, buf, sizeof(buf), 'g', 6, '\0'); print(env, "(%s+", buf); - format_float(o->real, buf, sizeof(buf), 'g', 6, '\0'); + format_float(o->imag, buf, sizeof(buf), 'g', 6, '\0'); print(env, "%sj)", buf); } #else -- GitLab