diff options
author | bubnikv <bubnikv@gmail.com> | 2017-12-05 19:52:12 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-12-05 19:52:12 +0300 |
commit | 0a2be9d7bf22faba489a1a66c4a3ebbcdca87cba (patch) | |
tree | e908c66caaa97e7b1ea74b023e24a812bd845915 /xs/src/libslic3r/PlaceholderParser.cpp | |
parent | c34ec9b7d3ea32a92cc58d61fccb1e446687f6f2 (diff) |
Fixed compilation on unices.
Diffstat (limited to 'xs/src/libslic3r/PlaceholderParser.cpp')
-rw-r--r-- | xs/src/libslic3r/PlaceholderParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/PlaceholderParser.cpp b/xs/src/libslic3r/PlaceholderParser.cpp index ed75508ac..8f2f6d6e7 100644 --- a/xs/src/libslic3r/PlaceholderParser.cpp +++ b/xs/src/libslic3r/PlaceholderParser.cpp @@ -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; |