提交 2586585b 编写于 作者: J Jay Zhuang 提交者: Facebook GitHub Bot

Minor fix for Windows build with zlib (#9699)

Summary:
```
conversion from 'size_t' to 'uLong', possible loss of data
```

Fix https://github.com/facebook/rocksdb/issues/9688

Pull Request resolved: https://github.com/facebook/rocksdb/pull/9699

Reviewed By: riversand963

Differential Revision: D34901116

Pulled By: jay-zhuang

fbshipit-source-id: 969148a7a8c023449bd85055a1f0eec71d0a9b3f
上级 58947610
......@@ -779,7 +779,8 @@ inline bool Zlib_Compress(const CompressionInfo& info,
}
// Get an upper bound on the compressed size.
size_t upper_bound = deflateBound(&_stream, length);
size_t upper_bound =
deflateBound(&_stream, static_cast<unsigned long>(length));
output->resize(output_header_len + upper_bound);
// Compress the input, and put compressed data in output.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册