Skip to content

Commit be68e9d

Browse files
committed
Optimize word index encoding: small compression improvement on most text files
1 parent fa8bcfd commit be68e9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/transform/LZCodec.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ LZCodec::LZCodec(Context& ctx)
3131
const int lzType = ctx.getInt("lz", TransformFactory<byte>::LZ_TYPE);
3232

3333
if (lzType == TransformFactory<byte>::LZP_TYPE) {
34-
_delegate = (Transform<byte>*)new LZPCodec(ctx);
34+
_delegate = new LZPCodec(ctx);
3535
}
3636
else if (lzType == TransformFactory<byte>::LZX_TYPE) {
37-
_delegate = (Transform<byte>*)new LZXCodec<true>(ctx);
37+
_delegate = new LZXCodec<true>(ctx);
3838
}
3939
else {
40-
_delegate = (Transform<byte>*)new LZXCodec<false>(ctx);
40+
_delegate = new LZXCodec<false>(ctx);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)