summaryrefslogtreecommitdiff
path: root/gcc/ada/a-convec.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-04 13:31:24 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-04 13:31:24 +0000
commit8e9d12597759d6626335764fac82795cef78f7be (patch)
tree44bfd5c7d3bbfa64205b95de570d167845fe6f12 /gcc/ada/a-convec.ads
parent210a164419cbbf31544e375344036f30f891dea2 (diff)
downloadgcc-8e9d12597759d6626335764fac82795cef78f7be.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101597 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-convec.ads')
-rw-r--r--gcc/ada/a-convec.ads3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/a-convec.ads b/gcc/ada/a-convec.ads
index c8e6e99f760..9c4e76a02b3 100644
--- a/gcc/ada/a-convec.ads
+++ b/gcc/ada/a-convec.ads
@@ -46,8 +46,7 @@ pragma Preelaborate (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;