Explorar o código

* fixed compilation on big endian systems

git-svn-id: trunk@8068 -
tom_at_work %!s(int64=18) %!d(string=hai) anos
pai
achega
b7e4528998
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/extra/chm/paslzxcomp.pas

+ 1 - 1
packages/extra/chm/paslzxcomp.pas

@@ -714,7 +714,7 @@ begin
       lzxd^.bit_buf := lzxd^.bit_buf or (bits shr rshift_bits) and mask_bits;
     end;
 {$IFDEF ENDIAN_BIG}
-    lzxd^.bit_buf := ((lzxd^.bit_buf and $FF)shl8) or (lzxd^.bit_buf shr 8);
+    lzxd^.bit_buf := ((lzxd^.bit_buf and $FF)shl 8) or (lzxd^.bit_buf shr 8);
 {$ENDIF}
     lzxd^.put_bytes(lzxd^.out_arg, sizeof(lzxd^.bit_buf), @lzxd^.bit_buf);
     Inc(lzxd^.len_compressed_output, sizeof(lzxd^.bit_buf));