summaryrefslogtreecommitdiff
path: root/gcc/ada/a-coinve.ads
diff options
context:
space:
mode:
authorMatthew Heaney <heaney@adacore.com>2005-07-04 15:31:24 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2005-07-04 15:31:24 +0200
commitd43d5ef7b552483264f6af5a831bdef1d1cd55cb (patch)
tree44bfd5c7d3bbfa64205b95de570d167845fe6f12 /gcc/ada/a-coinve.ads
parentc8effb4f399d8f1d59c2a2aafdfbfeaf1313de73 (diff)
downloadgcc-d43d5ef7b552483264f6af5a831bdef1d1cd55cb.tar.gz
a-convec.ads, [...]: Declaration of subtype Extended_Index was changed.
2005-07-04 Matthew Heaney <heaney@adacore.com> * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index was changed. * a-coinve.adb: Perform constraint checks explicitly. From-SVN: r101597
Diffstat (limited to 'gcc/ada/a-coinve.ads')
-rw-r--r--gcc/ada/a-coinve.ads3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/a-coinve.ads b/gcc/ada/a-coinve.ads
index f33e8308439..e2a4de9539c 100644
--- a/gcc/ada/a-coinve.ads
+++ b/gcc/ada/a-coinve.ads
@@ -48,8 +48,7 @@ pragma Preelaborate (Indefinite_Vectors);
subtype Extended_Index is Index_Type'Base
range Index_Type'First - 1 ..
- Index_Type'Last +
- Boolean'Pos (Index_Type'Base'Last > Index_Type'Last);
+ Index_Type'Min (Index_Type'Base'Last - 1, Index_Type'Last) + 1;
No_Index : constant Extended_Index := Extended_Index'First;