We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afed11 commit 47aae06Copy full SHA for 47aae06
lib/inc/sys_string/impl/platforms/python_any.h
@@ -483,7 +483,7 @@ namespace sysstr
483
constexpr auto size = ::std::size(U##x); \
484
constexpr auto maxChar = ::sysstr::util::find_max_codepoint(U##x); \
485
if constexpr (maxChar <= 0x7fu) { \
486
- static ::sysstr::util::PyUnicodeObject_wrapper<PyUnicode_1BYTE_KIND> str(size - 1, x); \
+ static ::sysstr::util::PyUnicodeObject_wrapper<PyUnicode_1BYTE_KIND> str(size - 1, u8##x); \
487
return str.as_string(); \
488
} else if constexpr (maxChar <= 0xffffu) { \
489
static ::sysstr::util::PyUnicodeObject_wrapper<PyUnicode_2BYTE_KIND> str(size - 1, u##x); \
0 commit comments