mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Update our tooling (Clang 5 -> 7, GCC 7 -> 8)
This change permits to use up-to-date compilers, clang-tidy and clang-format It also refactor the tidy/format step to drop the binary selection from scripts and perform it directly in travis
This commit is contained in:
parent
aafbdd442f
commit
a6a04c4b5b
8 changed files with 38 additions and 35 deletions
|
@ -2916,13 +2916,13 @@ public:
|
|||
ret[0] = unicode::BOM;
|
||||
else if (endian == unicode::EUTFEE_LITTLE)
|
||||
{
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
|
||||
*ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0];
|
||||
*ptr8 = unicode::BOM_ENCODE_UTF16_LE[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
|
||||
*ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0];
|
||||
*ptr8 = unicode::BOM_ENCODE_UTF16_BE[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue