Skip to content

Conversation

@playfulkittykat
Copy link

No description provided.

@bblanchon
Copy link
Owner

Hi @playfulkittykat,

Can you provide some context?
Why were the casts necessary?

Best regards,
Benoit

@playfulkittykat
Copy link
Author

playfulkittykat commented Nov 20, 2025

Sure! I was getting large/negative numbers when read()-ing from the MemoryStream, instead of the positive value. I am not entirely sure, but I assume the issue is that CircularBuffer is returning an unqualified char, which could possibly be signed? I have to admit, my C/C++ is extremely rusty.

@bblanchon
Copy link
Owner

Could you provide a reproduction code that demonstrates the issue?

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