Skip to content

Commit 1e98e20

Browse files
committed
more of aaron's comments
1 parent ce9d015 commit 1e98e20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

functions.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,14 @@ namespace Sass {
714714
// it's a multi bit sequence and presumably it's a leading bit
715715
else {
716716
++i; // go to the next byte
717-
c = static_cast<unsigned char>(str[i]);
718717
// see if it's still part of the sequence
719-
while ((i < length_of_s) && ((c & 0b11000000) == 0b10000000)) {
718+
while ((i < length_of_s) && ((static_cast<unsigned char>(str[i]) & 0b11000000) == 0b10000000)) {
720719
++i;
721-
c = static_cast<unsigned char>(str[i]);
722720
}
723721
// when it's not [aka a new leading bit], increment and move on
724722
++len;
725723
}
726724
}
727-
728725
return new (ctx.mem) Number(path, position, len);
729726
}
730727

0 commit comments

Comments
 (0)