src/cx/string.h

changeset 1488
946895d19dde
parent 1426
3a89b31f0724
--- 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<const char*>(str));
+    return cx_str(reinterpret_cast<const char*>(str));
 }
 extern "C" {
 #else

mercurial