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

Fix read count #4

Merged
merged 2 commits into from
Sep 16, 2023
Merged

Fix read count #4

merged 2 commits into from
Sep 16, 2023

Conversation

totalspectrum
Copy link
Contributor

The way repeat loop indices are left at the end of loop varies between compilers, even between PNut versions. Here's a change that explicitly counts the bytes as they are read. I think this makes the logic a bit clearer, as a bonus (but YMMV).

I also had to restore a change to RT_utilities to explicitly initialize the directory ID before looping through directory calls; flexspin will usually insert implicit initialization to 0, but for variables that are passed by address to subroutines.

@ironsheep ironsheep merged commit 3007904 into ironsheep:main Sep 16, 2023
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.

2 participants