Skip to content

Commit

Permalink
Fixed compilation on unices.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Dec 5, 2017
1 parent c34ec9b commit 0a2be9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs/src/libslic3r/PlaceholderParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ namespace client
auto it = first;
// Read the first byte of the UTF-8 sequence.
unsigned char c = static_cast<boost::uint8_t>(*it ++);
unsigned int cnt = 0;
// UTF-8 sequence must not start with a continuation character:
if ((c & 0xC0) == 0x80)
goto err;
// Skip high surrogate first if there is one.
// 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:
unsigned int cnt = 0;
{
unsigned char mask = 0x80u;
unsigned int result = 0;
Expand Down

0 comments on commit 0a2be9d

Please sign in to comment.