Patchwork [FYI] Fix creal_internal_fn comment

login
register
mail settings
Submitter Tom Tromey
Date Nov. 28, 2019, 3:08 p.m.
Message ID <20191128150822.19697-1-tom@tromey.com>
Download mbox | patch
Permalink /patch/36356/
State New
Headers show

Comments

Tom Tromey - Nov. 28, 2019, 3:08 p.m.
I noticed that the comment before creal_internal_fn refers to $_cimag,
but should refer to $_creal.

gdb/ChangeLog
2019-11-28  Tom Tromey  <tom@tromey.com>

	* value.c (creal_internal_fn): Fix comment.

Change-Id: I5665aceb4be5aae7014e914cfb39db184c65d5ea
---
 gdb/ChangeLog | 4 ++++
 gdb/value.c   | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/gdb/value.c b/gdb/value.c
index 57e62b9175f..2e2117bf31c 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -3947,7 +3947,7 @@  isvoid_internal_fn (struct gdbarch *gdbarch,
   return value_from_longest (builtin_type (gdbarch)->builtin_int, ret);
 }
 
-/* Implementation of the convenience function $_cimag.  Extracts the
+/* Implementation of the convenience function $_creal.  Extracts the
    real part from a complex number.  */
 
 static struct value *