Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple glyph flags capacity off by one? #66

Closed
wezm opened this issue Apr 27, 2022 · 2 comments
Closed

Simple glyph flags capacity off by one? #66

wezm opened this issue Apr 27, 2022 · 2 comments

Comments

@wezm
Copy link
Contributor

wezm commented Apr 27, 2022

I think I might have the reserved capacity for simple glyph flags off by one (too small) here:

let mut flags = Vec::with_capacity(number_of_contours);

@mikeday
Copy link
Contributor

mikeday commented Apr 27, 2022

Why is it number_of_contours instead of number_of_coordinates since that's when the loop stops?

@wezm
Copy link
Contributor Author

wezm commented Apr 27, 2022

Right. I think it should be number_of_coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants