[gdb/ada] Fix literal truncation
authorTom de Vries <tdevries@suse.de>
Sat, 4 Jun 2022 11:17:33 +0000 (13:17 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 4 Jun 2022 11:17:33 +0000 (13:17 +0200)
commitac3afe36d73c84096685fece885d70b28bc9629f
tree55d9e2351f534a10f9eafc0bb43a80ecaaf149c6
parent999f7adc21cdcef5b606d2529068121dc6032b18
[gdb/ada] Fix literal truncation

Make sure we error out on overflow instead of truncating in all cases.

Tested on x86_64-linux, with a build with --enable-targets=all.
gdb/ada-lex.l
gdb/testsuite/gdb.base/parse_number.exp