From c9bbb8afef9f553e435bfcf56609d6b48177ecf2 Mon Sep 17 00:00:00 2001 From: Casey Hillers Date: Fri, 23 Jun 2023 09:45:01 +0000 Subject: [PATCH] Explicitly cast enum class to int before passing it with a format string. Next version of the crosstool will start warning about this (see: https://github.com/llvm/llvm-project/issues/38717) --- impeller/renderer/blit_pass.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impeller/renderer/blit_pass.cc b/impeller/renderer/blit_pass.cc index 36ef50f40eecc..340ec36bd81e0 100644 --- a/impeller/renderer/blit_pass.cc +++ b/impeller/renderer/blit_pass.cc @@ -48,8 +48,8 @@ bool BlitPass::AddCopy(std::shared_ptr source, VALIDATION_LOG << SPrintF( "The source sample count (%d) must match the destination sample count " "(%d) for blits.", - source->GetTextureDescriptor().sample_count, - destination->GetTextureDescriptor().sample_count); + static_cast(source->GetTextureDescriptor().sample_count), + static_cast(destination->GetTextureDescriptor().sample_count)); return false; }