From 962d94567cf5d7088e54b2fa69d5b136fb38bbb6 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 10 Feb 2025 20:59:34 -0500 Subject: [PATCH] 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 --- include/crucible/hexdump.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crucible/hexdump.h b/include/crucible/hexdump.h index 2e099c2..6f65265 100644 --- a/include/crucible/hexdump.h +++ b/include/crucible/hexdump.h @@ -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(v.data()); + const uint8_t* const v_data = reinterpret_cast(v.data()); os << "V { size = " << v_size << ", data:\n"; for (size_t i = 0; i < v_size; i += 8) { string hex, ascii;