Fix enumeral comparison error.

TBR=henrike
BUG=
TEST=build on Linux.

Review URL: https://webrtc-codereview.appspot.com/372007

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1553 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2012-01-25 19:38:16 +00:00
parent b9d7d934de
commit 42ae41e5a2

View File

@ -556,10 +556,11 @@ WebRtc_Word32 AudioConferenceMixerImpl::SetMixabilityStatus(
return -1;
}
const int numMixedNonAnonymous = (_participantList.GetSize() <
kMaximumAmountOfMixedParticipants) ? _participantList.GetSize() :
kMaximumAmountOfMixedParticipants;
int numMixedNonAnonymous = _participantList.GetSize();
if (numMixedNonAnonymous > kMaximumAmountOfMixedParticipants)
{
numMixedNonAnonymous = kMaximumAmountOfMixedParticipants;
}
numMixedParticipants = numMixedNonAnonymous +
_additionalParticipantList.GetSize();
}