diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
commit | 7af9baa9faead8155e4459104c30cb1b6a15180e (patch) | |
tree | f374af83c99ae1de201ea30ac3416e4adf605a72 /gdb/rust-parse.c | |
parent | 4c4d769ab7b01dab8ff8c66209f992de98095a00 (diff) | |
download | binutils-7af9baa9faead8155e4459104c30cb1b6a15180e.zip binutils-7af9baa9faead8155e4459104c30cb1b6a15180e.tar.gz binutils-7af9baa9faead8155e4459104c30cb1b6a15180e.tar.bz2 |
[gdb/pascal] Fix literal truncation
Make sure we error out on overflow instead of truncating in all cases.
The current implementation of parse_number contains a comment about PR16377,
but that's related to C-like languages. In absence of information of whether
the same fix is needed for pascal, take the conservative approach and keep
behaviour for decimals unchanged.
Tested on x86_64-linux, with a build with --enable-targets=all.
Diffstat (limited to 'gdb/rust-parse.c')
0 files changed, 0 insertions, 0 deletions