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

Fix label_id division by 256 -> 255 #2455

Merged

Conversation

wkentaro
Copy link
Member

@wkentaro wkentaro commented Oct 19, 2019

Since len(colormap) is 255, % 256 is wrong. It can return 255, which raises IndexError.

Since `len(colormap)` is `255`, % 256 is wrong since it can return 255
which raises IndexError.
@wkentaro wkentaro added the bug label Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants