# HG changeset patch # User Mike Becker # Date 1762882988 -3600 # Node ID 946895d19ddee48d81fcb47e18cf77870c033928 # Parent 0ff535033b78b4fdc646ab4e239bdf3e5dc7f757 fix wrong type of cast in C++ version of string.h diff -r 0ff535033b78 -r 946895d19dde src/cx/string.h --- a/src/cx/string.h Tue Nov 11 18:39:18 2025 +0100 +++ b/src/cx/string.h Tue Nov 11 18:43:08 2025 +0100 @@ -256,7 +256,7 @@ } cx_attr_nodiscard CX_CPPDECL cxstring cx_strcast(const unsigned char *str) { - return cx_str(static_cast(str)); + return cx_str(reinterpret_cast(str)); } extern "C" { #else