mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +02:00
hexdump: fix pointer cast const mismatch
Another hit from the exotic compiler collection: build fails on GCC 9, from Ubuntu 20...but not later versions of GCC. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
6dbef5f27b
commit
962d94567c
@ -13,7 +13,7 @@ namespace crucible {
|
||||
hexdump(ostream &os, const V &v)
|
||||
{
|
||||
const auto v_size = v.size();
|
||||
const uint8_t* const v_data = reinterpret_cast<uint8_t*>(v.data());
|
||||
const uint8_t* const v_data = reinterpret_cast<const uint8_t*>(v.data());
|
||||
os << "V { size = " << v_size << ", data:\n";
|
||||
for (size_t i = 0; i < v_size; i += 8) {
|
||||
string hex, ascii;
|
||||
|
Loading…
x
Reference in New Issue
Block a user