From 829734946db6e4668d2cc235cee074388e03b481 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 23 Oct 2023 11:47:24 -0400 Subject: [PATCH] Fix android build: add cast for formatting (#29916) --- .../tv-casting-app/tv-casting-common/support/CastingStore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp b/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp index d8cdfca07ccaed..1bfd75a93a47ca 100644 --- a/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp +++ b/examples/tv-casting-app/tv-casting-common/support/CastingStore.cpp @@ -333,7 +333,8 @@ CHIP_ERROR CastingStore::WriteAll(std::vector castingPlayer ChipLogProgress(AppServer, "CastingStore::WriteAll TLV(CastingStoreData).LengthWritten: %d bytes, CastingPlayers size: %lu " "and version: %d", - tlvWriter.GetLengthWritten(), castingPlayers.size(), kCurrentCastingStoreDataVersion); + tlvWriter.GetLengthWritten(), static_cast(castingPlayers.size()), + kCurrentCastingStoreDataVersion); return chip::DeviceLayer::PersistedStorage::KeyValueStoreMgr().Put(kCastingStoreDataKey, castingStoreData, tlvWriter.GetLengthWritten()); }