public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2108] [Ada] Fix precondition of Cot for code analyzers
@ 2021-07-07 16:25 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-07 16:25 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d557a5f9cea39c4871af06e0684f94590d8bd97d

commit r12-2108-gd557a5f9cea39c4871af06e0684f94590d8bd97d
Author: Yannick Moy <moy@adacore.com>
Date:   Mon May 17 15:58:26 2021 +0200

    [Ada] Fix precondition of Cot for code analyzers
    
    gcc/ada/
    
            * libgnat/a-ngelfu.ads (Cot): Fix precondition.

Diff:
---
 gcc/ada/libgnat/a-ngelfu.ads | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/libgnat/a-ngelfu.ads b/gcc/ada/libgnat/a-ngelfu.ads
index 055c2823450..523e64ff971 100644
--- a/gcc/ada/libgnat/a-ngelfu.ads
+++ b/gcc/ada/libgnat/a-ngelfu.ads
@@ -126,7 +126,7 @@ is
      Pre => Cycle > 0.0
        and then X /= 0.0
        and then Float_Type'Base'Remainder (X, Cycle) /= 0.0
-       and then abs Float_Type'Base'Remainder (X, Cycle) = 0.5 * Cycle;
+       and then abs Float_Type'Base'Remainder (X, Cycle) /= 0.5 * Cycle;
 
    function Arcsin (X : Float_Type'Base) return Float_Type'Base with
      Pre  => abs X <= 1.0,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-07 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07 16:25 [gcc r12-2108] [Ada] Fix precondition of Cot for code analyzers Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).