From e0200dd8cc42e0a7f6a13620390901bea51e8981 Mon Sep 17 00:00:00 2001 From: Lau Ching Jun Date: Fri, 23 Jun 2023 09:17:04 -0700 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; }