Open
Conversation
I believe, and correct me if I am wrong, that these arrays are already pointers to their first elements. So we can pass the arrays as pointers, and in fact, we should eliminate extra variables that point to the same memory loc!
Owner
|
doesn't appear to be compiling on my end - maybe its how my compiler on windows handles arrays? |
added 2 commits
June 4, 2024 02:59
That variable has been deleted! Silly me. Allow me to rever to the existing one instead.
I misremembered the rules for casting an array to a pointer type. Upon refreshing myself of the rules for multi-dimensional arrays, I believe I have a state that will compile on my friend's machine. Am I right? We'll find out soon!
Owner
|
new errors, still doesnt compile - getting closer to solving it! |
This is an attempte to resolve compiler errors on suwa's end, by using more consistent 2D array access. However, I have yet to test this on a Windows machine, and I cannot compile on Linux until we merge PR#4. Do not be surprised when this fails to compile! I am simply trying to "nudge" it in the right direction towards a compilable state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These arrays are already pointers to their first elements. So we can pass the arrays as pointers, and in fact, we should eliminate extra variables that point to the same memory loc!
Before merging, make sure it compiles and runs on your end. And maybe use a linter to make sure I'm not going crazy here...