summaryrefslogtreecommitdiff
path: root/gcc/ada/a-textio.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:52:38 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:52:38 +0000
commitde506f1b9507659678aca32f798edbfe72894bde (patch)
tree684480b3b0849763c2205e30efc28ff1de968689 /gcc/ada/a-textio.adb
parent13dbf220c5aaf12216775401714e6f36e0ae175c (diff)
downloadgcc-de506f1b9507659678aca32f798edbfe72894bde.tar.gz
2005-09-01 Robert Dewar <dewar@adacore.com>
* a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks with 'Valid tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103858 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-textio.adb')
-rw-r--r--gcc/ada/a-textio.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/a-textio.adb b/gcc/ada/a-textio.adb
index d86e2a9312c..dfd65574159 100644
--- a/gcc/ada/a-textio.adb
+++ b/gcc/ada/a-textio.adb
@@ -896,7 +896,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if Spacing not in Positive_Count then
+ if not Spacing'Valid then
raise Constraint_Error;
end if;
@@ -1334,7 +1334,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if To not in Positive_Count then
+ if not To'Valid then
raise Constraint_Error;
end if;
@@ -1461,7 +1461,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if To not in Positive_Count then
+ if not To'Valid then
raise Constraint_Error;
end if;
@@ -1506,7 +1506,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if To not in Count then
+ if not To'Valid then
raise Constraint_Error;
end if;
@@ -1539,7 +1539,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if To not in Count then
+ if not To'Valid then
raise Constraint_Error;
end if;
@@ -1567,7 +1567,7 @@ package body Ada.Text_IO is
-- explicit test is that we don't want junk values around, even if
-- checks are off in the caller.
- if Spacing not in Positive_Count then
+ if not Spacing'Valid then
raise Constraint_Error;
end if;