Skip to content

Avoid infinite loop when reading assembly file #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nytpu
Copy link

@nytpu nytpu commented Jul 4, 2024

When reading in shared data from an assembly file, the loop (weirdly...) uses a left shift instead of a normal iteration when determining the assembly datatype. However, it started the loop variable at 0, so it would remain at 0 after a left shift and loop infinitely. This sets the loop variable to 1, which seems to have been the intention since the cGasTypes contains empty dummy entries to accommodate the shifting method.

When reading in shared data from an assembly file, the loop (weirdly...) uses a
left shift instead of a normal iteration when determining the assembly
datatype.  However, it started the loop variable at 0, so it would remain at 0
after a left shift and loop infinitely.  This sets the loop variable to 1,
which seems to have been the intention since the cGasTypes contains empty dummy
entries to accommodate the shifting method.
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.

1 participant