]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix rounding test with odd bases
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 2 Apr 2025 11:13:33 +0000 (13:13 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Jun 2025 08:37:54 +0000 (10:37 +0200)
commitfa6a71aac7eee3ad1597759724992ee1f65ee87f
tree8609f0fa5b2e40fdc294ea8d76431d79964aa7c6
parent5aa2239ff0cb1388f6921cb591ced7336c1948c6
ada: Fix rounding test with odd bases

The test as currently written is incorrect for odd bases.

gcc/ada/ChangeLog:

* libgnat/s-valuer.adb (Round_Extra): Use multiplicative test.
gcc/ada/libgnat/s-valuer.adb