Explorar o código

* range check error

git-svn-id: trunk@3134 -
peter %!s(int64=19) %!d(string=hai) anos
pai
achega
7923a81cfd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/cclasses.pas

+ 1 - 1
compiler/cclasses.pas

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