Skip to content

Commit 8ca0840

Browse files
committed
Fix compile error
1 parent 4c97871 commit 8ca0840

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/src/arrow/io/compressed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ARROW_EXPORT CompressedOutputStream : public OutputStream {
4545

4646
/// \brief Create a compressed output stream wrapping the given output stream.
4747
///
48-
/// The codec must be capaable of streaming compression. Some codecs,
48+
/// The codec must be capable of streaming compression. Some codecs,
4949
/// like Snappy, are not able to do so.
5050
static Result<std::shared_ptr<CompressedOutputStream>> Make(
5151
util::Codec* codec, const std::shared_ptr<OutputStream>& raw,
@@ -86,7 +86,7 @@ class ARROW_EXPORT CompressedInputStream
8686

8787
/// \brief Create a compressed input stream wrapping the given input stream.
8888
///
89-
/// The codec must be capaable of streaming decompression. Some codecs,
89+
/// The codec must be capable of streaming decompression. Some codecs,
9090
/// like Snappy, are not able to do so.
9191
static Result<std::shared_ptr<CompressedInputStream>> Make(
9292
util::Codec* codec, const std::shared_ptr<InputStream>& raw,

cpp/src/arrow/io/compressed_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void CompressedInputStreamBenchmark(::benchmark::State& state,
103103
const int64_t input_size = state.range(0);
104104
const int64_t batch_size = state.range(1);
105105

106-
const std::vector<uint8_t> data = MakeCompressibleData(input_size);
106+
const std::vector<uint8_t> data = MakeCompressibleData(static_cast<int>(input_size));
107107
auto codec = ::arrow::util::Codec::Create(compression).ValueOrDie();
108108
int64_t max_compress_len =
109109
codec->MaxCompressedLen(static_cast<int64_t>(data.size()), data.data());

0 commit comments

Comments
 (0)