Explorar el Código

* fixed compilation on big endian systems

git-svn-id: trunk@8068 -
tom_at_work hace 18 años
padre
commit
b7e4528998
Se han modificado 1 ficheros con 1 adiciones y 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));