From 6579e9c9f9c7c5b5b2120709a7d5bbf298a78eaf Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 3 May 2018 20:30:20 -0400 Subject: [PATCH] Use reinterpret_cast with a pointer to const. --- source/base/data_out_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 278120a9a1..ea47ebd793 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -285,7 +285,7 @@ namespace (uint32_t)compressed_data_length }; /* list of compressed sizes of blocks */ - char *encoded_header = encode_block ((char *)&compression_header[0], + char *encoded_header = encode_block (reinterpret_cast(&compression_header[0]), 4 * sizeof(compression_header[0])); output_stream << encoded_header; delete[] encoded_header; -- 2.39.5