mirror of
https://github.com/Zygo/bees.git
synced 2025-07-02 00:32:27 +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:
@ -13,7 +13,7 @@ namespace crucible {
|
|||||||
hexdump(ostream &os, const V &v)
|
hexdump(ostream &os, const V &v)
|
||||||
{
|
{
|
||||||
const auto v_size = v.size();
|
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";
|
os << "V { size = " << v_size << ", data:\n";
|
||||||
for (size_t i = 0; i < v_size; i += 8) {
|
for (size_t i = 0; i < v_size; i += 8) {
|
||||||
string hex, ascii;
|
string hex, ascii;
|
||||||
|
Reference in New Issue
Block a user