diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:35:31 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:35:31 +0000 |
commit | 01b877d16d791b4b03798c2aa77e39a3d98a0673 (patch) | |
tree | e045dcf29d0ad6dc5f9c1e916624b5fe09c3fbe4 /py | |
parent | ce8f07adcd47c9e5c6edbb42f855f06eb08b88e6 (diff) | |
download | micropython-01b877d16d791b4b03798c2aa77e39a3d98a0673.tar.gz micropython-01b877d16d791b4b03798c2aa77e39a3d98a0673.zip |
py: Fix typo printing complex numbers.
Diffstat (limited to 'py')
-rw-r--r-- | py/objcomplex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c index feec9c11a3..91f6b081e3 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 |