From f2db0b69f360309f1a51c19643e3d1ac8834f8ff Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Mon, 30 Jan 2023 10:41:19 +0000 Subject: [PATCH] Fix compilation error with clang 11 (#4913) --- src/apps/external_executor/external_executor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/external_executor/external_executor.cpp b/src/apps/external_executor/external_executor.cpp index e088dd6b2..6a93fc140 100644 --- a/src/apps/external_executor/external_executor.cpp +++ b/src/apps/external_executor/external_executor.cpp @@ -516,9 +516,9 @@ namespace externalexecutor ccf::ClaimsDigest::Digest::SIZE, payload_digest.size())); } - claims.set(crypto::Sha256Hash::from_span( - {(uint8_t*)payload_digest.data(), - ccf::ClaimsDigest::Digest::SIZE})); + const std::span digest_span{ + (uint8_t*)payload_digest.data(), ccf::ClaimsDigest::Digest::SIZE}; + claims.set(crypto::Sha256Hash::from_span(digest_span)); } auto& active_request = it->second.submitted_requests.front();