diff --git a/examples/tv-app/linux/include/audio-output/AudioOutputManager.cpp b/examples/tv-app/linux/include/audio-output/AudioOutputManager.cpp index 6ed1d60d371c22..ffec32a12e02e7 100644 --- a/examples/tv-app/linux/include/audio-output/AudioOutputManager.cpp +++ b/examples/tv-app/linux/include/audio-output/AudioOutputManager.cpp @@ -52,12 +52,12 @@ vector AudioOutputManager::proxyGetListOfAudioOutputInfo int maximumVectorSize = 3; char name[] = "exampleName"; - for (uint8_t i = 0; i < maximumVectorSize; ++i) + for (int i = 0; i < maximumVectorSize; ++i) { EmberAfAudioOutputInfo audioOutputInfo; audioOutputInfo.outputType = EMBER_ZCL_AUDIO_OUTPUT_TYPE_HDMI; audioOutputInfo.name = chip::ByteSpan(chip::Uint8::from_char(name), sizeof(name)); - audioOutputInfo.index = 1 + i; + audioOutputInfo.index = static_cast(1 + i); audioOutputInfos.push_back(audioOutputInfo); } diff --git a/examples/tv-app/linux/include/media-input/MediaInputManager.cpp b/examples/tv-app/linux/include/media-input/MediaInputManager.cpp index 90842a8acc4421..e16df11592c6dc 100644 --- a/examples/tv-app/linux/include/media-input/MediaInputManager.cpp +++ b/examples/tv-app/linux/include/media-input/MediaInputManager.cpp @@ -71,13 +71,13 @@ std::vector MediaInputManager::proxyGetInputList() char description[] = "exampleDescription"; char name[] = "exampleName"; - for (uint8_t i = 0; i < maximumVectorSize; ++i) + for (int i = 0; i < maximumVectorSize; ++i) { EmberAfMediaInputInfo mediaInput; mediaInput.description = chip::ByteSpan(chip::Uint8::from_char(description), sizeof(description)); mediaInput.name = chip::ByteSpan(chip::Uint8::from_char(name), sizeof(name)); mediaInput.inputType = EMBER_ZCL_MEDIA_INPUT_TYPE_HDMI; - mediaInput.index = 1 + i; + mediaInput.index = static_cast(1 + i); mediaInputList.push_back(mediaInput); } diff --git a/examples/tv-app/linux/include/target-navigator/TargetNavigatorManager.cpp b/examples/tv-app/linux/include/target-navigator/TargetNavigatorManager.cpp index a68a890964ed94..02587dd47e9b35 100644 --- a/examples/tv-app/linux/include/target-navigator/TargetNavigatorManager.cpp +++ b/examples/tv-app/linux/include/target-navigator/TargetNavigatorManager.cpp @@ -48,11 +48,11 @@ std::vector TargetNavigatorManager::proxyGetTar int maximumVectorSize = 2; char name[] = "exampleName"; - for (uint8_t i = 0; i < maximumVectorSize; ++i) + for (int i = 0; i < maximumVectorSize; ++i) { EmberAfNavigateTargetTargetInfo targetInfo; targetInfo.name = chip::ByteSpan(chip::Uint8::from_char(name), sizeof(name)); - targetInfo.identifier = 1 + i; + targetInfo.identifier = static_cast(1 + i); targets.push_back(targetInfo); } diff --git a/examples/tv-app/linux/include/tv-channel/TvChannelManager.cpp b/examples/tv-app/linux/include/tv-channel/TvChannelManager.cpp index 1f1da76d90cffd..f87c93edd24db1 100644 --- a/examples/tv-app/linux/include/tv-channel/TvChannelManager.cpp +++ b/examples/tv-app/linux/include/tv-channel/TvChannelManager.cpp @@ -75,14 +75,14 @@ std::vector TvChannelManager::proxyGetTvChannelList() char callSign[] = "exampleCSign"; char name[] = "exampleName"; - for (uint16_t i = 0; i < maximumVectorSize; ++i) + for (int i = 0; i < maximumVectorSize; ++i) { EmberAfTvChannelInfo channelInfo; channelInfo.affiliateCallSign = ByteSpan(Uint8::from_char(affiliateCallSign), sizeof(affiliateCallSign)); channelInfo.callSign = ByteSpan(Uint8::from_char(callSign), sizeof(callSign)); channelInfo.name = ByteSpan(Uint8::from_char(name), sizeof(name)); - channelInfo.majorNumber = 1 + i; - channelInfo.minorNumber = 2 + i; + channelInfo.majorNumber = static_cast(1 + i); + channelInfo.minorNumber = static_cast(2 + i); tvChannels.push_back(channelInfo); }