File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,11 @@ Span<std::byte> MakeWritableByteSpan(V&& v) noexcept
287
287
// Helper functions to safely cast basic byte pointers to unsigned char pointers.
288
288
inline unsigned char * UCharCast (char * c) { return reinterpret_cast <unsigned char *>(c); }
289
289
inline unsigned char * UCharCast (unsigned char * c) { return c; }
290
+ inline unsigned char * UCharCast (signed char * c) { return reinterpret_cast <unsigned char *>(c); }
290
291
inline unsigned char * UCharCast (std::byte* c) { return reinterpret_cast <unsigned char *>(c); }
291
292
inline const unsigned char * UCharCast (const char * c) { return reinterpret_cast <const unsigned char *>(c); }
292
293
inline const unsigned char * UCharCast (const unsigned char * c) { return c; }
294
+ inline const unsigned char * UCharCast (const signed char * c) { return reinterpret_cast <const unsigned char *>(c); }
293
295
inline const unsigned char * UCharCast (const std::byte* c) { return reinterpret_cast <const unsigned char *>(c); }
294
296
// Helper concept for the basic byte types.
295
297
template <typename B>
You can’t perform that action at this time.
0 commit comments