소스 검색

* fixed compilation on big endian systems

git-svn-id: trunk@8068 -
tom_at_work 18 년 전
부모
커밋
b7e4528998
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));