Commit 01b877d1 authored by Damien George's avatar Damien George
Browse files

py: Fix typo printing complex numbers.

parent ce8f07ad
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment