ext/zstdruby/libzstd/compress/zstd_compress_literals.c in zstd-ruby-1.4.9.0 vs ext/zstdruby/libzstd/compress/zstd_compress_literals.c in zstd-ruby-1.5.0.0
- old
+ new
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2016-2021, Yann Collet, Facebook, Inc.
+ * Copyright (c) Yann Collet, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
@@ -115,10 +115,10 @@
DEBUGLOG(5, "Reusing previous huffman table");
hType = set_repeat;
}
}
- if ((cLitSize==0) | (cLitSize >= srcSize - minGain) | ERR_isError(cLitSize)) {
+ if ((cLitSize==0) || (cLitSize >= srcSize - minGain) || ERR_isError(cLitSize)) {
ZSTD_memcpy(nextHuf, prevHuf, sizeof(*prevHuf));
return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
}
if (cLitSize==1) {
ZSTD_memcpy(nextHuf, prevHuf, sizeof(*prevHuf));