]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Use consistent truncation of 'Value for decimal fixed-point types
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 26 May 2025 21:56:47 +0000 (23:56 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 3 Jul 2025 08:16:17 +0000 (10:16 +0200)
commit0ef4195c17fe7b0b755686b13f65b57eff12dfe4
tree5a1412816473f58cdd6e313db86015f41a7ea04a
parent37bf13adcda564dfdb28c3aa736f2cac71c73d09
ada: Use consistent truncation of 'Value for decimal fixed-point types

This uses truncation for all bases instead of for base 10 only.

gcc/ada/ChangeLog:

* libgnat/s-valued.adb (Integer_to_Decimal): Use truncation for the
scaled divide operation performed for bases other than 10.
gcc/ada/libgnat/s-valued.adb