From 0938e5145854954f5143e08d25fbad231c6cfa90 Mon Sep 17 00:00:00 2001 From: Liaiss Merzougue Date: Fri, 30 Oct 2020 08:19:09 +0000 Subject: [PATCH] [Ada] Add the remark concerning the use of Image_Ordinary_Fixed_Point gcc/ada/ * libgnat/s-imgrea.ads (Image_Ordinary_Fixed_Point): Add a remark concerning the irrelevant use of Inf and -0.0 --- gcc/ada/libgnat/s-imgrea.ads | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/ada/libgnat/s-imgrea.ads b/gcc/ada/libgnat/s-imgrea.ads index 565666a483c..d8eb721b62a 100644 --- a/gcc/ada/libgnat/s-imgrea.ads +++ b/gcc/ada/libgnat/s-imgrea.ads @@ -46,6 +46,9 @@ package System.Img_Real is -- ordinary fixed point (see package System.Img_Dec for handling of decimal -- fixed point). The caller guarantees that S is long enough to hold the -- result and has a lower bound of 1. + -- + -- Remark: This procedure should NOT be called with V = -0.0 or V = +/-Inf, + -- The result is irrelevant. procedure Image_Floating_Point (V : Long_Long_Float; -- 2.30.2