diff options
author | Tom Tromey <tromey@adacore.com> | 2025-05-02 11:03:07 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-05-05 07:37:18 -0600 |
commit | f3d834df28734ebc82931808960fe63401127c06 (patch) | |
tree | 02931e05b508c6e4d57264c74fc3bfb63512142c /gdb/python/python.c | |
parent | 4011eaac9a1fce5c44fcabb12368159b3e899d84 (diff) | |
download | binutils-f3d834df28734ebc82931808960fe63401127c06.zip binutils-f3d834df28734ebc82931808960fe63401127c06.tar.gz binutils-f3d834df28734ebc82931808960fe63401127c06.tar.bz2 |
Fix sign of Ada rational constants
My earlier patch commit 0c03db90 ("Use correct sign in get_mpz") was
(very) incorrect. It changed get_mpz to check for a strict sign when
examining part of an Ada rational constant. However, in Ada the
"delta" for a fixed-point type must be positive, and so the components
of the rational representation will be positive.
This patch corrects the error. It also renames the get_mpz function,
in case anyone is tempted to reuse this code for another purpose.
Finally, this pulls over the test from the internal AdaCore test suite
that found this issue.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions