Skip to content

A couple of small fixes for VDUStreamProcessor#100

Merged
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
stevesims:small-buffered-logic-fix
Sep 27, 2023
Merged

A couple of small fixes for VDUStreamProcessor#100
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
stevesims:small-buffered-logic-fix

Conversation

@stevesims
Copy link
Copy Markdown
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!

Comment thread video/vdu_buffered.h
}

uint16_t VDUStreamProcessor::getBufferByte(uint16_t bufferId, uint32_t offset) {
int16_t VDUStreamProcessor::getBufferByte(uint16_t bufferId, uint32_t offset) {
Copy link
Copy Markdown
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

Comment thread video/vdu_buffered.h
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
Copy Markdown
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