]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove redundant check from parse_number.exp
authorTom Tromey <tromey@adacore.com>
Tue, 26 Mar 2024 16:52:00 +0000 (10:52 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 26 Mar 2024 16:53:47 +0000 (10:53 -0600)
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

index 648c34f5bc2654f971ca1e5a131d279970e74870..64ce14ccd65e5d1e4b5dbea45b704f03b3de0c98 100644 (file)
@@ -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]