Skip to content

Commit 7128d20

Browse files
committed
[#3210] fix some warnings
1 parent 40f5634 commit 7128d20

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib/util/io.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ readUint(void const* const buffer, size_t const length) {
3232
<< (length == 1 ? "" : "s") << " instead");
3333
}
3434

35-
uint8_t const* const byte_buffer(static_cast<uint8_t const* const>(buffer));
35+
uint8_t const* const byte_buffer(static_cast<uint8_t const*>(buffer));
3636
uint_t result;
3737
uint8_t* pointer_to_result(static_cast<uint8_t*>(static_cast<void*>(&result)));
3838

@@ -60,9 +60,8 @@ writeUint(uint_t const value, void* const buffer, size_t const length) {
6060
<< (length == 1 ? "" : "s") << " instead");
6161
}
6262

63-
uint8_t const* const pointer_to_value(
64-
static_cast<uint8_t const* const>(static_cast<void const* const>(&value)));
65-
uint8_t* const byte_buffer(static_cast<uint8_t* const>(buffer));
63+
uint8_t const* pointer_to_value(static_cast<uint8_t const*>(static_cast<void const*>(&value)));
64+
uint8_t* byte_buffer(static_cast<uint8_t*>(buffer));
6665

6766
std::reverse_copy(pointer_to_value, pointer_to_value + size, byte_buffer);
6867

0 commit comments

Comments
 (0)