aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-rannum.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-06-22 14:42:24 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-06-22 14:42:24 +0200
commite86a3a7e6ffb78b799a3a92d958e1afd2237adb1 (patch)
tree50900b84fb5e659aac25cd84920e07cfcab97f6d /gcc/ada/s-rannum.adb
parentb086849e7c7d11523c5f99695e6f7e949019c263 (diff)
downloadgcc-e86a3a7e6ffb78b799a3a92d958e1afd2237adb1.zip
gcc-e86a3a7e6ffb78b799a3a92d958e1afd2237adb1.tar.gz
gcc-e86a3a7e6ffb78b799a3a92d958e1afd2237adb1.tar.bz2
[multiple changes]
2010-06-22 Robert Dewar <dewar@adacore.com> * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype test to catch more cases where first subtype is the results we want. * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in error case, since Errout will now handle this correctly. * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects. Update dependencies. 2010-06-22 Arnaud Charlet <charlet@adacore.com> * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly when calling Make_Temporary. 2010-06-22 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to subprogram can be associated with an entry body. 2010-06-22 Robert Dewar <dewar@adacore.com> * scos.ads: Add note on membership test handling. 2010-06-22 Vincent Celier <celier@adacore.com> * projects.texi: Minor spelling fixes. Minor reformatting. 2010-06-22 Paul Hilfinger <hilfinger@adacore.com> * s-rannum.adb: Correct off-by-one error in Extract_Value. From-SVN: r161171
Diffstat (limited to 'gcc/ada/s-rannum.adb')
-rw-r--r--gcc/ada/s-rannum.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/s-rannum.adb b/gcc/ada/s-rannum.adb
index 4480c69..085c4bf 100644
--- a/gcc/ada/s-rannum.adb
+++ b/gcc/ada/s-rannum.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2007,2009 Free Software Foundation, Inc. --
+-- Copyright (C) 2007-2010, 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- --
@@ -528,7 +528,7 @@ package body System.Random_Numbers is
function Extract_Value (S : String; Index : Integer) return State_Val is
begin
return State_Val'Value (S (S'First + Index * 11 ..
- S'First + Index * 11 + 11));
+ S'First + Index * 11 + 10));
end Extract_Value;
end System.Random_Numbers;