aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-witeio.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2005-09-05 09:52:38 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2005-09-05 09:52:38 +0200
commit405e57adc0248985e4ef02e7b16a176c06a646e7 (patch)
tree684480b3b0849763c2205e30efc28ff1de968689 /gcc/ada/a-witeio.adb
parent2ede092bd71ef3748866d32ae7267eb8ff8b15e2 (diff)
downloadgcc-405e57adc0248985e4ef02e7b16a176c06a646e7.zip
gcc-405e57adc0248985e4ef02e7b16a176c06a646e7.tar.gz
gcc-405e57adc0248985e4ef02e7b16a176c06a646e7.tar.bz2
a-ztexio.adb, [...]: Replace bad range checks with 'Valid tests.
2005-09-01 Robert Dewar <dewar@adacore.com> * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks with 'Valid tests. From-SVN: r103858
Diffstat (limited to 'gcc/ada/a-witeio.adb')
-rw-r--r--gcc/ada/a-witeio.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/a-witeio.adb b/gcc/ada/a-witeio.adb
index 249c2bf..0733192 100644
--- a/gcc/ada/a-witeio.adb
+++ b/gcc/ada/a-witeio.adb
@@ -987,7 +987,7 @@ package body Ada.Wide_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;
@@ -1346,7 +1346,7 @@ package body Ada.Wide_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;
@@ -1434,7 +1434,7 @@ package body Ada.Wide_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;
@@ -1479,7 +1479,7 @@ package body Ada.Wide_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;
@@ -1512,7 +1512,7 @@ package body Ada.Wide_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;
@@ -1570,7 +1570,7 @@ package body Ada.Wide_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;