diff --git a/cpp/src/parquet/metadata.cc b/cpp/src/parquet/metadata.cc index 4aab3987a1f08..4ea3b05340d71 100644 --- a/cpp/src/parquet/metadata.cc +++ b/cpp/src/parquet/metadata.cc @@ -1563,7 +1563,7 @@ class ColumnChunkMetaDataBuilder::ColumnChunkMetaDataBuilderImpl { serialized_len); std::vector encrypted_data(encryptor->CiphertextLength(serialized_len)); - unsigned encrypted_len = encryptor->Encrypt(serialized_data_span, encrypted_data); + int encrypted_len = encryptor->Encrypt(serialized_data_span, encrypted_data); const char* temp = const_cast(reinterpret_cast(encrypted_data.data()));