Commit d09a280c by Igorbek

Fix bug in loop in Document::emit_css when size_t is unsigned.

parent 038c77f9
...@@ -136,7 +136,8 @@ namespace Sass { ...@@ -136,7 +136,8 @@ namespace Sass {
// trim trailing whitespace // trim trailing whitespace
if (!retval.empty()) { if (!retval.empty()) {
size_t newlines = 0; size_t newlines = 0;
for (size_t i = retval.length() - 1; i >= 0; --i) { size_t i = retval.length();
while (i --> 0) {
if (retval[i] == '\n') { if (retval[i] == '\n') {
++newlines; ++newlines;
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment