OSDN Git Service

2005-11-14 Robert Dewar <dewar@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2005 13:59:50 +0000 (13:59 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2005 13:59:50 +0000 (13:59 +0000)
* g-spitbo.adb: (Hash): Rotate by 3 instead of 1

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106985 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/g-spitbo.adb

index 7bab3f4..3bceb9c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---            Copyright (C) 1998-2005 Ada Core Technologies, Inc.           --
+--                     Copyright (C) 1998-2005, AdaCore                     --
 --                                                                          --
 -- 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- --
@@ -622,7 +622,7 @@ package body GNAT.Spitbol is
 
       begin
          for J in Str'Range loop
-            Result := Rotate_Left (Result, 1) +
+            Result := Rotate_Left (Result, 3) +
                       Unsigned_32 (Character'Pos (Str (J)));
          end loop;