Commit 3cf0d7a8 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #30143: alsa: avoid eventual (undefined) overflow

Use unsigned integers since they are guaranteed to wraparound to 0
when incrementing UINT_MAX.
parent 791f6ec2
......@@ -176,8 +176,8 @@ class AlsaLayer : public AudioLayer {
* need to be restarted to prevent permanant damage to the session
* (every frame will now produce an error until restart)
int watchdogTotalCount_;
int watchdogTotalErr_;
unsigned watchdogTotalCount_;
unsigned watchdogTotalErr_;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment