Skip to content

Commit 01b877d

Browse files
committed
py: Fix typo printing complex numbers.
1 parent ce8f07a commit 01b877d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/objcomplex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void *
3434
} else {
3535
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
3636
print(env, "(%s+", buf);
37-
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
37+
format_float(o->imag, buf, sizeof(buf), 'g', 6, '\0');
3838
print(env, "%sj)", buf);
3939
}
4040
#else

0 commit comments

Comments
 (0)