fix build issue on MacOS

This commit is contained in:
thamht4190 authored and Gidon Gershinsky committed 2019-05-28 08:31:58 +03:00
1 parent 24795fae1d
commit abd76a6221
1 file changed
+2 -2
+2 -2
View File
@@ -455,8 +455,8 @@ std::string createFooterAAD(const std::string& aad_prefix_bytes) {
void quickUpdatePageAAD(const std::string& AAD, int16_t new_page_ordinal) {
std::string page_ordinal_bytes = shortToBytesLE(new_page_ordinal);
int length = (int)AAD.size();
std::memcpy((int16_t*)(AAD.c_str() + length - 2),
(int16_t*)(page_ordinal_bytes.c_str()), 2);
std::memcpy((int16_t*)(const_cast<char*>(AAD.c_str() + length - 2)),
(const int16_t*)(page_ordinal_bytes.c_str()), 2);
}
} // namespace parquet_encryption