From f595694afe39560b87cd6f53b4021dd3c95ee724 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb@users.noreply.github.com> Date: Mon, 18 Mar 2024 13:23:32 +0000 Subject: [PATCH] Fix compiler warning See https://github.com/Thalhammer/jwt-cpp/pull/331 --- Development/third_party/jwt-cpp/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Development/third_party/jwt-cpp/base.h b/Development/third_party/jwt-cpp/base.h index fd3ee281..9d7c43c0 100644 --- a/Development/third_party/jwt-cpp/base.h +++ b/Development/third_party/jwt-cpp/base.h @@ -93,7 +93,7 @@ namespace jwt { auto itr = std::find_if(alphabet.cbegin(), alphabet.cend(), [symbol](char c) { return c == symbol; }); if (itr == alphabet.cend()) { throw std::runtime_error("Invalid input: not within alphabet"); } - return std::distance(alphabet.cbegin(), itr); + return static_cast(std::distance(alphabet.cbegin(), itr)); } } // namespace alphabet