Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into update-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Mart committed Aug 10, 2023
2 parents c40861b + e15bb01 commit 9e3eeaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/psibase_http/jwt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace psibase::http
{
std::array<char, 64> 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<char>('Z' + 1)), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('a', static_cast<char>('z' + 1)), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('0', static_cast<char>('9' + 1)), pos).out;
*pos++ = '-';
*pos++ = '_';
if (pos != result.end())
Expand Down
2 changes: 2 additions & 0 deletions programs/psitest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ struct vm_options
static constexpr std::uint32_t max_stack_bytes = 1024 * 1024;
};

#ifdef __x86_64__
template <>
void eosio::vm::machine_code_writer<eosio::vm::jit_execution_context<callbacks, true>,
true>::on_unreachable()
{
backtrace();
eosio::vm::throw_<wasm_interpreter_exception>("unreachable");
}
#endif

using backend_t = eosio::vm::backend< //
rhf_t,
Expand Down

0 comments on commit 9e3eeaa

Please sign in to comment.