Преглед на файлове

* range check error

git-svn-id: trunk@3134 -
peter преди 19 години
родител
ревизия
7923a81cfd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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}