From ea948766a55cb5791e775d0dde25dfa7d617690a Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 24 Sep 2021 18:54:48 -0700 Subject: [PATCH] Events: Fix conversion warning Thanks micolous for the report. --- src/eventhandler/EventHandler_Inputs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventhandler/EventHandler_Inputs.cpp b/src/eventhandler/EventHandler_Inputs.cpp index b8a55e4d..1dd5a5ef 100644 --- a/src/eventhandler/EventHandler_Inputs.cpp +++ b/src/eventhandler/EventHandler_Inputs.cpp @@ -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;