Skip to content

A couple of small fixes for VDUStreamProcessor #100

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

Merged

Conversation

stevesims
Copy link
Contributor

A couple of minor fixes to typing (catching potential logic flaws) and compiler warnings that I'd made in the Console8 codebase had slipped past when raising PRs. Soz!

@@ -174,11 +174,10 @@ void VDUStreamProcessor::setOutputStream(uint16_t bufferId) {
}
}

uint16_t VDUStreamProcessor::getBufferByte(uint16_t bufferId, uint32_t offset) {
int16_t VDUStreamProcessor::getBufferByte(uint16_t bufferId, uint32_t offset) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function can return -1, so it needs to be a signed int

if (buffers.find(bufferId) != buffers.end()) {
// buffer ID exists
// loop thru buffers stored against this ID to find data at offset
uint32_t value = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiler warnings show up this unused variable 😁

@breakintoprogram breakintoprogram self-assigned this Sep 27, 2023
@breakintoprogram breakintoprogram added the bug Something isn't working label Sep 27, 2023
@breakintoprogram breakintoprogram merged commit 2d72449 into breakintoprogram:main Sep 27, 2023
@breakintoprogram breakintoprogram removed their assignment Oct 18, 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
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants