-
Notifications
You must be signed in to change notification settings - Fork 228
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
android/sound.cpp: Fix overflow warning #1385
Conversation
Hrm, Android build is currently failing:
|
Yes, I noticed, but I can’t understand why. I’m trying to set up a build environment, based on the workflow file, but haven’t succeeded yet. |
Fork and reduce the builds done on your fork to just the failing one (and then down to just the needed bits, if that's easy enough) -- or is that what you meant? |
Well that's certainly one way to do it. I had been hoping to create a local build environment to mirror what Github does, but didn't succeed. |
Todo: fix error on Android. @j-santander might have an idea?
|
Fails because you have unsigned (the return of the ring buffer size) and signed arguments (the count) in the std::min what's this overflow warning? Tried to check the logs of recent builds but either I don't know how to check it or it wasn't there. |
BTW, I did a PR #1528 to replace my custom ring buffer with the CBuffer common to the rest of the project. |
|
I expect so, and I believe there are others too. I have been intending to look at them all, but not got there yet.
Don't know.
Will check when I pick it up again. |
Closing in favour of #2292 |
Ah, right. This should be the relevant fix: I was just confused by the seemingly unrelated mention of #2292. |
Hopefully, this should fix the overflow warning that gets listed below every PR.