summaryrefslogtreecommitdiff
path: root/gcc/ada/a-stwifi.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/a-stwifi.adb')
-rw-r--r--gcc/ada/a-stwifi.adb7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/a-stwifi.adb b/gcc/ada/a-stwifi.adb
index dc71f1b878a..100fb8019e6 100644
--- a/gcc/ada/a-stwifi.adb
+++ b/gcc/ada/a-stwifi.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2002 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -379,7 +379,7 @@ package body Ada.Strings.Wide_Fixed is
raise Index_Error;
else
declare
- Result_Length : Natural :=
+ Result_Length : constant Natural :=
Natural'Max
(Source'Length,
Position - Source'First + New_Item'Length);
@@ -588,7 +588,8 @@ package body Ada.Strings.Wide_Fixed is
else
declare
- Result : Wide_String (1 .. High - Low + 1) := Source (Low .. High);
+ Result : constant Wide_String (1 .. High - Low + 1) :=
+ Source (Low .. High);
begin
return Result;