We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd35ca9 commit 0848debCopy full SHA for 0848deb
crates/signum/src/chsets/printer.rs
@@ -187,8 +187,9 @@ pub fn parse_char(input: &[u8]) -> IResult<&[u8], PSetChar> {
187
let (input, top) = u8(input)?;
188
let (input, height) = u8(input)?;
189
let (input, width) = u8(input)?;
190
- let (input, _d) = u8(input)?;
191
- assert_eq!(_d, 0);
+ /// FIXME: Are there any valid files where this is non-zero?
+ let (input, _d) = verify(u8, |x| *x == 0)(input)?;
192
+
193
let len = (width as usize) * (height as usize);
194
let (input, bitmap) = take(len)(input)?;
195
let input = if len % 2 == 1 { &input[1..] } else { input };
0 commit comments