From 9af9729377dcf027c06e1bf21f958df2c8907c3c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 23 May 2000 15:56:33 +0000 Subject: one line fix by Gregory Lielens to fix a problem with the printing of complex numbers (it would print the real part twice). --- gdb/f-valprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/f-valprint.c') diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index a007c87..92a10f2 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -564,7 +564,7 @@ f_val_print (type, valaddr, embedded_offset, address, stream, format, deref_ref, fputs_filtered ("(", stream); print_floating (valaddr, type, stream); fputs_filtered (",", stream); - print_floating (valaddr, type, stream); + print_floating (valaddr + TYPE_LENGTH (type), type, stream); fputs_filtered (")", stream); break; -- cgit v1.1