@@ -72,7 +72,7 @@ void BP1Writer::WriteProcessGroupIndex(
72
72
73
73
// offset to pg in data in metadata which is the current absolute position
74
74
CopyToBuffer (metadataBuffer,
75
- static_cast <uint64_t *>(&heap.m_DataAbsolutePosition ));
75
+ reinterpret_cast <uint64_t *>(&heap.m_DataAbsolutePosition ));
76
76
77
77
// Back to writing metadata pg index length (length of group)
78
78
const std::uint16_t metadataPGIndexLength =
@@ -206,7 +206,7 @@ void BP1Writer::WriteDimensionsRecord(
206
206
auto lf_WriteFlaggedDim = [](std::vector<char > &buffer, const char no,
207
207
const std::size_t dimension) {
208
208
CopyToBuffer (buffer, &no);
209
- CopyToBuffer (buffer, static_cast <const uint64_t *>(&dimension));
209
+ CopyToBuffer (buffer, reinterpret_cast <const uint64_t *>(&dimension));
210
210
};
211
211
212
212
// BODY Starts here
@@ -227,8 +227,8 @@ void BP1Writer::WriteDimensionsRecord(
227
227
{
228
228
for (const auto &localDimension : localDimensions)
229
229
{
230
- CopyToBuffer (buffer,
231
- static_cast < const uint64_t *>( &localDimension));
230
+ CopyToBuffer (buffer, reinterpret_cast < const uint64_t *>(
231
+ &localDimension));
232
232
buffer.insert (buffer.end (), skip, 0 );
233
233
}
234
234
}
@@ -250,12 +250,12 @@ void BP1Writer::WriteDimensionsRecord(
250
250
{
251
251
for (unsigned int d = 0 ; d < localDimensions.size (); ++d)
252
252
{
253
- CopyToBuffer (
254
- buffer, static_cast < const uint64_t *>( &localDimensions[d]));
255
- CopyToBuffer (buffer, static_cast <const uint64_t *>(
253
+ CopyToBuffer (buffer, reinterpret_cast < const uint64_t *>(
254
+ &localDimensions[d]));
255
+ CopyToBuffer (buffer, reinterpret_cast <const uint64_t *>(
256
256
&globalDimensions[d]));
257
- CopyToBuffer (buffer,
258
- static_cast < const uint64_t *>( &globalOffsets[d]));
257
+ CopyToBuffer (buffer, reinterpret_cast < const uint64_t *>(
258
+ &globalOffsets[d]));
259
259
}
260
260
}
261
261
}
0 commit comments