This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] language.c: reverse the sense of the test
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] language.c: reverse the sense of the test
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Tue, 08 May 2001 14:19:06 -0700
- Cc: taylor at candd dot org
- Newsgroups: cygnus.patches.gdb
- Organization: Red Hat
Checked in under the obvious fix rule -- the test was inverted.
2001-05-08 Michael Snyder <msnyder@redhat.com>
* language.c (longest_local_hex_string_custom): Strlen test is
inverted -- reverse the sense of the test.
Index: language.c
===================================================================
RCS file: /cvs/src/src/gdb/language.c,v
retrieving revision 1.15
diff -c -3 -p -r1.15 language.c
*** language.c 2001/03/27 20:36:23 1.15
--- language.c 2001/05/08 21:16:34
*************** longest_local_hex_string_custom (LONGEST
*** 720,726 ****
num_pad_chars = field_width - strlen (temp_nbr_buf); /* possibly negative */
if (strlen (local_hex_format_prefix ()) + num_len + num_pad_chars
! < RESULT_BUF_LEN) /* paranoia */
internal_error (__FILE__, __LINE__,
"longest_local_hex_string_custom: insufficient space to store result");
--- 720,726 ----
num_pad_chars = field_width - strlen (temp_nbr_buf); /* possibly negative */
if (strlen (local_hex_format_prefix ()) + num_len + num_pad_chars
! >= RESULT_BUF_LEN) /* paranoia */
internal_error (__FILE__, __LINE__,
"longest_local_hex_string_custom: insufficient space to store result");