This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 10/12] symtab.c: Add cast
- From: Doug Evans <xdje42 at gmail dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 25 Oct 2015 22:30:53 -0700
- Subject: Re: [PATCH c++ 10/12] symtab.c: Add cast
- Authentication-results: sourceware.org; auth=none
- References: <1445831204-16588-1-git-send-email-simon dot marchi at polymtl dot ca> <1445831204-16588-10-git-send-email-simon dot marchi at polymtl dot ca>
Simon Marchi <simon.marchi@polymtl.ca> writes:
> gdb/ChangeLog:
>
> * symtab.c (default_make_symbol_completion_list_break_on_1): Add
> cast.
> ---
> gdb/symtab.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gdb/symtab.c b/gdb/symtab.c
> index b0a16b6..16190c4 100644
> --- a/gdb/symtab.c
> +++ b/gdb/symtab.c
> @@ -5422,7 +5422,7 @@ default_make_symbol_completion_list_break_on_1 (const char *text,
> /* These languages may have parameters entered by user but they are never
> present in the partial symbol tables. */
>
> - const char *cs = memchr (sym_text, '(', sym_text_len);
> + const char *cs = (const char *) memchr (sym_text, '(', sym_text_len);
>
> if (cs)
> sym_text_len = cs - sym_text;
LGTM