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 IndexError: index out of range #3

Closed
wants to merge 1 commit into from

Conversation

lochotzke
Copy link
Contributor

Since xy is 1+size long the highest valid index is 1+(size-1) which equals size.

Since xy is 1+size long the highest valid index is 1+(size-1) which equals size.
@cslashm
Copy link
Owner

cslashm commented Nov 6, 2018

In fact, after re-reading P1363-2000, my encoding is not correct. (Don't ask where I read the tody encoding....).
Correct one shall be:

04 X Y
02 X       if Y is even
03 X       if Y is odd

@cslashm cslashm added the bug label Nov 6, 2018
@cslashm
Copy link
Owner

cslashm commented Jan 10, 2020

fixed in incoming release

@cslashm cslashm closed this Jan 10, 2020
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.

None yet

2 participants