We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62bf352 commit b55aa0bCopy full SHA for b55aa0b
src/rules/font_face.rs
@@ -283,12 +283,12 @@ impl ToCss for UnicodeRange {
283
284
// Get the remainder of the value. This must be 0x0 to 0xf for the rest
285
// of the value to use the question mark syntax.
286
- let remainder_mask = (0xf << shift) - 1 | (1 << shift);
+ shift += 4;
287
+ let remainder_mask = (1 << shift) - 1;
288
let start_remainder = self.start & remainder_mask;
289
let end_remainder = self.end & remainder_mask;
290
291
if start_remainder == 0 && end_remainder == remainder_mask {
- shift += 4;
292
let start = (self.start & !remainder_mask) >> shift;
293
if start != 0 {
294
write!(dest, "U+{:X}", start)?;
0 commit comments