Use the underlying type of char16_t
Change-Id: I5f48f1f3dc379cc57cfeac473f80bec4c4bc38af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104989 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
04eacb9ae3
commit
c8b93a478d
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include <cppunit/TestAssert.h>
|
||||
|
@ -19,7 +20,7 @@
|
|||
// ostream << char16_t is deleted since C++20 (but just keep outputting numeric values):
|
||||
template <> inline std::string CppUnit::assertion_traits<char16_t>::toString(char16_t const& x)
|
||||
{
|
||||
return assertion_traits<unsigned>::toString(unsigned(x));
|
||||
return assertion_traits<std::uint_least16_t>::toString(std::uint_least16_t(x));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue