Events: Fix conversion warning

Thanks micolous for the report.
This commit is contained in:
tt2468 2021-09-24 18:54:48 -07:00
parent c73a153c9a
commit ea948766a5

View File

@ -145,8 +145,8 @@ void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
long long tracks = calldata_int(data, "mixers");
json inputAudioTracks;
for (size_t i = 0; i < MAX_AUDIO_MIXES; i++) {
inputAudioTracks[std::to_string(i + 1)] = (bool)((1 << i) & tracks);
for (long long i = 0; i < MAX_AUDIO_MIXES; i++) {
inputAudioTracks[std::to_string(i + 1)] = (bool)((tracks >> i) & 1);
}
json eventData;