projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dcf894
)
[Ada] Fix precondition of Cot for code analyzers
author
Yannick Moy
<moy@adacore.com>
Mon, 17 May 2021 13:58:26 +0000
(15:58 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Wed, 7 Jul 2021 16:23:13 +0000
(16:23 +0000)
gcc/ada/
* libgnat/a-ngelfu.ads (Cot): Fix precondition.
gcc/ada/libgnat/a-ngelfu.ads
patch
|
blob
|
history
diff --git
a/gcc/ada/libgnat/a-ngelfu.ads
b/gcc/ada/libgnat/a-ngelfu.ads
index
055c282
..
523e64f
100644
(file)
--- 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,