mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Use cast to const void pointer in to_readonly_span helper
This lets developers actually hex-dump print `Span<T const>` using the helper as intended.
This commit is contained in:
committed by
Andreas Kling
parent
52ce887b80
commit
09ce32039f
@@ -326,7 +326,7 @@ template<typename T>
|
||||
requires(IsTrivial<T>)
|
||||
ReadonlyBytes to_readonly_bytes(Span<T> span)
|
||||
{
|
||||
return ReadonlyBytes { static_cast<void*>(span.data()), span.size() * sizeof(T) };
|
||||
return ReadonlyBytes { static_cast<void const*>(span.data()), span.size() * sizeof(T) };
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user