From 1809e96711604e15670178e47760e17698cbbf21 Mon Sep 17 00:00:00 2001 From: James Mart Date: Wed, 9 Aug 2023 19:26:18 +0000 Subject: [PATCH] fix arm builds --- libraries/psibase_http/jwt.cpp | 6 +++--- programs/psitest/main.cpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/psibase_http/jwt.cpp b/libraries/psibase_http/jwt.cpp index 0b9898cb5..9e6586806 100644 --- a/libraries/psibase_http/jwt.cpp +++ b/libraries/psibase_http/jwt.cpp @@ -15,9 +15,9 @@ namespace psibase::http { std::array result = {}; auto pos = result.begin(); - pos = std::ranges::copy(std::ranges::views::iota('A', 'Z' + 1), pos).out; - pos = std::ranges::copy(std::ranges::views::iota('a', 'z' + 1), pos).out; - pos = std::ranges::copy(std::ranges::views::iota('0', '9' + 1), pos).out; + pos = std::ranges::copy(std::ranges::views::iota('A', static_cast('Z' + 1)), pos).out; + pos = std::ranges::copy(std::ranges::views::iota('a', static_cast('z' + 1)), pos).out; + pos = std::ranges::copy(std::ranges::views::iota('0', static_cast('9' + 1)), pos).out; *pos++ = '-'; *pos++ = '_'; if (pos != result.end()) diff --git a/programs/psitest/main.cpp b/programs/psitest/main.cpp index b0b8e8a3c..18502e5ec 100644 --- a/programs/psitest/main.cpp +++ b/programs/psitest/main.cpp @@ -40,6 +40,7 @@ struct vm_options static constexpr std::uint32_t max_stack_bytes = 1024 * 1024; }; +#ifdef __x86_64__ template <> void eosio::vm::machine_code_writer, true>::on_unreachable() @@ -47,6 +48,7 @@ void eosio::vm::machine_code_writer("unreachable"); } +#endif using backend_t = eosio::vm::backend< // rhf_t,