Skip to content

Commit efced13

Browse files
Follow-up fix for encoding data as u32
The original work was done in PR linebender#817 and as noticed in issue linebender#875, there was still a place where there was a length manipulation that was in terms of `u8` rather than `u32`. Fixes linebender#875.
1 parent a90b939 commit efced13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vello_encoding/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl<'a> PathEncoder<'a> {
683683
self.close();
684684
}
685685
if self.state == PathState::MoveTo {
686-
let new_len = self.data.len() - 8;
686+
let new_len = self.data.len() - 2;
687687
self.data.truncate(new_len);
688688
}
689689
if self.n_encoded_segments != 0 {

0 commit comments

Comments
 (0)