We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa6394d commit 3333f95Copy full SHA for 3333f95
src/span.h
@@ -270,7 +270,7 @@ Span<std::byte> MakeWritableByteSpan(V&& v) noexcept
270
inline unsigned char* UCharCast(char* c) { return (unsigned char*)c; }
271
inline unsigned char* UCharCast(unsigned char* c) { return c; }
272
inline unsigned char* UCharCast(std::byte* c) { return (unsigned char*)c; }
273
-inline const unsigned char* UCharCast(const char* c) { return (unsigned char*)c; }
+inline const unsigned char* UCharCast(const char* c) { return reinterpret_cast<const unsigned char*>(c); }
274
inline const unsigned char* UCharCast(const unsigned char* c) { return c; }
275
inline const unsigned char* UCharCast(const std::byte* c) { return reinterpret_cast<const unsigned char*>(c); }
276
0 commit comments