diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-29 11:41:38 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-29 11:41:38 +0000 |
commit | 6e54fcfd124ec380621f0bd3daeb934525b56638 (patch) | |
tree | 02a19fa69e4a120cf725e046f4691c8175df47b0 /py/objcomplex.c | |
parent | d1e443d0bc073c55ffab880292f3b645ed37a029 (diff) |
py: Fix typo printing complex numbers that are purely imaginary.
Diffstat (limited to 'py/objcomplex.c')
-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 91f6b081e..c2b9d4910 100644 --- a/py/objcomplex.c +++ b/py/objcomplex.c @@ -30,7 +30,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void * char buf[32]; if (o->real == 0) { format_float(o->imag, buf, sizeof(buf), 'g', 6, '\0'); - print(env, "%s", buf); + print(env, "%sj", buf); } else { format_float(o->real, buf, sizeof(buf), 'g', 6, '\0'); print(env, "(%s+", buf); |