mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-10 06:09:09 +08:00
Fixed compilation on unices.
This commit is contained in:
parent
c34ec9b7d3
commit
0a2be9d7bf
@ -664,13 +664,13 @@ namespace client
|
|||||||
auto it = first;
|
auto it = first;
|
||||||
// Read the first byte of the UTF-8 sequence.
|
// Read the first byte of the UTF-8 sequence.
|
||||||
unsigned char c = static_cast<boost::uint8_t>(*it ++);
|
unsigned char c = static_cast<boost::uint8_t>(*it ++);
|
||||||
|
unsigned int cnt = 0;
|
||||||
// UTF-8 sequence must not start with a continuation character:
|
// UTF-8 sequence must not start with a continuation character:
|
||||||
if ((c & 0xC0) == 0x80)
|
if ((c & 0xC0) == 0x80)
|
||||||
goto err;
|
goto err;
|
||||||
// Skip high surrogate first if there is one.
|
// Skip high surrogate first if there is one.
|
||||||
// If the most significant bit with a zero in it is in position
|
// If the most significant bit with a zero in it is in position
|
||||||
// 8-N then there are N bytes in this UTF-8 sequence:
|
// 8-N then there are N bytes in this UTF-8 sequence:
|
||||||
unsigned int cnt = 0;
|
|
||||||
{
|
{
|
||||||
unsigned char mask = 0x80u;
|
unsigned char mask = 0x80u;
|
||||||
unsigned int result = 0;
|
unsigned int result = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user