summaryrefslogtreecommitdiffstats
path: root/libaudio/AudioHardwareALSA.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libaudio/AudioHardwareALSA.cpp')
-rwxr-xr-xlibaudio/AudioHardwareALSA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libaudio/AudioHardwareALSA.cpp b/libaudio/AudioHardwareALSA.cpp
index b05b979..ee896e0 100755
--- a/libaudio/AudioHardwareALSA.cpp
+++ b/libaudio/AudioHardwareALSA.cpp
@@ -2128,7 +2128,7 @@ status_t ALSAControl::set(const char *name, unsigned int value, int index)
snd_ctl_elem_info_get_id(info, id);
snd_ctl_elem_type_t type = snd_ctl_elem_info_get_type(info);
unsigned int count = snd_ctl_elem_info_get_count(info);
- if ((unsigned int)index >= count) return BAD_VALUE;
+ if (index >= (int)count) return BAD_VALUE;
if (index == -1)
index = 0; // Range over all of them