From: Zygo Blaxell Date: Tue, 11 Feb 2025 01:59:34 +0000 (-0500) Subject: hexdump: fix pointer cast const mismatch X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=962d94567cf5d7088e54b2fa69d5b136fb38bbb6;p=bees 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 --- diff --git a/include/crucible/hexdump.h b/include/crucible/hexdump.h index 2e099c27..6f652653 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;