ext/libsass/src/output.cpp in sassc-1.8.4 vs ext/libsass/src/output.cpp in sassc-1.8.5
- old
+ new
@@ -65,10 +65,11 @@
}
// search for unicode char
for(const char& chr : wbuf.buffer) {
// skip all ascii chars
- if (chr >= 0) continue;
+ // static cast to unsigned to handle `char` being signed / unsigned
+ if (static_cast<unsigned>(chr) < 128) continue;
// declare the charset
if (output_style() != COMPRESSED)
charset = "@charset \"UTF-8\";"
+ std::string(opt.linefeed);
else charset = "\xEF\xBB\xBF";