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

Bugfix for Issue #606 #692

Merged
merged 1 commit into from
May 9, 2023

Conversation

WillRabalais04
Copy link
Contributor

Updates the getStringValue method of the VariableNode class so that it correctly handles multidimensional arrays. The default formatting of multidimensional arrays is to have the size of the first array written in the last set of brackets eg.int[][5]. This changes it so that the returned value has the size of the first array written in the first set of brackets eg.int[5][]. This can parse multidimensional arrays of any size.

Updates the getStringValue method of the VariableNode class so that it correctly handles multidimensional arrays. The default formatting of multidimensional arrays is to have the size of the first array written in the last set of brackets eg.int[][5]. This changes it so that the returned value has the size of the first array written in the first set of brackets eg.int[5][]. This can parse multidimensional arrays of any size.
@sampottinger
Copy link
Collaborator

Hey @WillRabalais04! Sorry it’s been a bit quiet here but this is fantastic. I may have a small addition to your PR that I’ll get your perspective on. I’ll open a PR against your branch to get your review. @SableRaf I can handle getting this to main.

@sampottinger sampottinger changed the base branch from main to fix-606-willrabalais May 9, 2023 15:47
@sampottinger
Copy link
Collaborator

Going to switch base to a different branch to get your review on some minor modification @WillRabalais04!

@sampottinger sampottinger merged commit 5ec4cdc into benfry:fix-606-willrabalais May 9, 2023
@sampottinger
Copy link
Collaborator

Thank you again @WillRabalais04 for this great addition! See #713 for next steps. Would love to get your code review!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants