From 4f384979afa9c34216b53c8e783c2dc8bafd5b4e Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 13 Jul 2023 13:13:55 -0700 Subject: [PATCH] Fix a Fuchsia formatter type mismatch flagged by the pending Clang roll (flutter/engine#43651) --- .../shell/platform/fuchsia/runtime/dart/utils/vmo.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmo.cc b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmo.cc index ecc29e22db1..043b46f1ee6 100644 --- a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmo.cc +++ b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmo.cc @@ -69,7 +69,8 @@ bool VmoFromFilename(const std::string& filename, fdio_open_fd(filename.c_str(), static_cast(flags), &fd); if (status != ZX_OK) { FX_LOGF(ERROR, LOG_TAG, "fdio_open_fd(\"%s\", %08x) failed: %s", - filename.c_str(), flags, zx_status_get_string(status)); + filename.c_str(), static_cast(flags), + zx_status_get_string(status)); return false; } bool result = VmoFromFd(fd, executable, buffer); @@ -91,7 +92,8 @@ bool VmoFromFilenameAt(int dirfd, static_cast(flags), &fd); if (status != ZX_OK) { FX_LOGF(ERROR, LOG_TAG, "fdio_open_fd_at(%d, \"%s\", %08x) failed: %s", - dirfd, filename.c_str(), flags, zx_status_get_string(status)); + dirfd, filename.c_str(), static_cast(flags), + zx_status_get_string(status)); return false; } bool result = VmoFromFd(fd, executable, buffer);