Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] Remove redundant check from parse_number.exp
@ 2024-03-26 16:52 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-03-26 16:52 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

A user on irc pointed out that parse_number.exp has a redundant check.
This patch removes the duplicate.
---
 gdb/testsuite/gdb.base/parse_number.exp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp
index 648c34f5bc2..64ce14ccd65 100644
--- a/gdb/testsuite/gdb.base/parse_number.exp
+++ b/gdb/testsuite/gdb.base/parse_number.exp
@@ -110,8 +110,6 @@ proc parse_number { lang n } {
 	    return [list "i64" $n]
 	} elseif { [fits_in_type $n 128 u] } {
 	    return [list "i128" $n]
-	} elseif { [fits_in_type $n 128 u] } {
-	    return [list "i128" $n]
 	} else {
 	    # Overflow.
 	    return [list $re_overflow $re_overflow]
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-26 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 16:52 [pushed] Remove redundant check from parse_number.exp Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox