Browse Source

* range check error

git-svn-id: trunk@3134 -
peter 19 years ago
parent
commit
7923a81cfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/cclasses.pas

+ 1 - 1
compiler/cclasses.pas

@@ -1105,7 +1105,7 @@ end;
         pmax:=@s[length(s)+1];
         pmax:=@s[length(s)+1];
         while (p<pmax) do
         while (p<pmax) do
           begin
           begin
-            result:=((result shl 5) - result) xor LongWord(P^);
+            result:=LongWord((result shl 5) - result) xor LongWord(P^);
             inc(p);
             inc(p);
           end;
           end;
 {$ifdef overflowon}
 {$ifdef overflowon}