From 09ce32039f3d7a2dcb09287a3155816780c36d17 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 5 Jan 2024 14:48:44 -0700 Subject: [PATCH] AK: Use cast to const void pointer in to_readonly_span helper This lets developers actually hex-dump print `Span` using the helper as intended. --- AK/Span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Span.h b/AK/Span.h index efa23636fb..7210caa267 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -326,7 +326,7 @@ template requires(IsTrivial) ReadonlyBytes to_readonly_bytes(Span span) { - return ReadonlyBytes { static_cast(span.data()), span.size() * sizeof(T) }; + return ReadonlyBytes { static_cast(span.data()), span.size() * sizeof(T) }; } template