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

rd_cell_codes is multidimensional and sizeof() won't work when TOTAL_ICs >1 #2

Open
BenVeghte opened this issue Mar 19, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@BenVeghte
Copy link
Contributor

for (int i = 0; i < sizeof(rd_cell_codes); i++) {

sizeof() returns the number of bytes, and because rd_cell_codes is a multidimensional array, the output of sizeof isn't going to be what we want for the for loop.

@BenVeghte BenVeghte added bug Something isn't working good first issue Good for newcomers labels Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant