Răsfoiți Sursa

* fix for ReadLEB128 on 16-bit CPUs

git-svn-id: trunk@39047 -
nickysn 7 ani în urmă
părinte
comite
60d49d696a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      rtl/inc/lnfodwrf.pp

+ 1 - 1
rtl/inc/lnfodwrf.pp

@@ -438,7 +438,7 @@ begin
   end;
   { extend sign. Note that we can not use shl/shr since the latter does not
     translate to arithmetic shifting for signed types }
-  ReadLEB128 := (not ((ReadLEB128 and (1 shl (shift-1)))-1)) or ReadLEB128;
+  ReadLEB128 := (not ((ReadLEB128 and (Int64(1) shl (shift-1)))-1)) or ReadLEB128;
 end;