From: David Wells Date: Fri, 4 May 2018 00:30:20 +0000 (-0400) Subject: Use reinterpret_cast with a pointer to const. X-Git-Tag: v9.0.0-rc1~23^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6579e9c9f9c7c5b5b2120709a7d5bbf298a78eaf;p=dealii.git Use reinterpret_cast with a pointer to const. --- 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;