filter/route: fixed unsigned/signed comparison

Fixes a clang warning.
This commit is contained in:
Max Kellermann 2010-06-06 21:56:30 +02:00
parent 4e83b79d2b
commit d0d2d6ed1b

View File

@ -310,7 +310,7 @@ route_filter_filter(struct filter *_filter,
// Need to perform one copy per output channel
for (unsigned int c=0; c<filter->min_output_channels; ++c) {
if (filter->sources[c] == -1 ||
filter->sources[c] >= filter->input_format.channels) {
(unsigned)filter->sources[c] >= filter->input_format.channels) {
// No source for this destination output,
// give it zeroes as input
memset(chan_destination,