Explorar el Código

* range check error

git-svn-id: trunk@3134 -
peter hace 19 años
padre
commit
7923a81cfd
Se han modificado 1 ficheros con 1 adiciones y 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}