Skip to content

Commit

Permalink
Fix sync
Browse files Browse the repository at this point in the history
  • Loading branch information
danilak-G committed Apr 4, 2024
1 parent 766d24c commit a60fd60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,8 @@ char* CompressFragment(const char* input, size_t input_size, char* op,
char* CompressFragmentDoubleHash(const char* input, size_t input_size, char* op,
uint16_t* table, const int table_size,
uint16_t* table2, const int table_size2) {
(void)table_size2;
assert(table_size == table_size2);
// "ip" is the input pointer, and "op" is the output pointer.
const char* ip = input;
assert(input_size <= kBlockSize);
Expand Down Expand Up @@ -1791,7 +1793,7 @@ bool GetUncompressedLength(Source* source, uint32_t* result) {
}

size_t Compress(Source* reader, Sink* writer, CompressionOptions options) {
CHECK(options.level == 1 || options.level == 2);
assert(options.level == 1 || options.level == 2);
int token = 0;
size_t written = 0;
size_t N = reader->Available();
Expand Down

0 comments on commit a60fd60

Please sign in to comment.