Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Mar 27, 2024
1 parent 4c97871 commit 8ca0840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/io/compressed.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ARROW_EXPORT CompressedOutputStream : public OutputStream {

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

/// \brief Create a compressed input stream wrapping the given input stream.
///
/// The codec must be capaable of streaming decompression. Some codecs,
/// The codec must be capable of streaming decompression. Some codecs,
/// like Snappy, are not able to do so.
static Result<std::shared_ptr<CompressedInputStream>> Make(
util::Codec* codec, const std::shared_ptr<InputStream>& raw,
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/io/compressed_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static void CompressedInputStreamBenchmark(::benchmark::State& state,
const int64_t input_size = state.range(0);
const int64_t batch_size = state.range(1);

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

0 comments on commit 8ca0840

Please sign in to comment.