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

stfpy: Fixed wrong __next__ implementation #34

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

furuame
Copy link
Member

@furuame furuame commented Apr 1, 2024

Iterator was falsely advanced every time before accessed. So the first record will be always ignored. Moreover, segmentation fault will be raised if the container is empty.

Iterator was falsely advanced every time before accessed. So the first record will be always ignored. Moreover, segmentation fault will be raised if the container is empty.
@furuame
Copy link
Member Author

furuame commented Apr 1, 2024

I've validated this fix on Instruction Reader and Operand Vector. Should be also straightforward for other classes ...

@klingaard
Copy link
Member

I defer to @bdutro on this one. :)

@bdutro
Copy link
Collaborator

bdutro commented Jun 7, 2024

LGTM, thanks

@bdutro bdutro merged commit 5f2026e into sparcians:master Jun 7, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants