[go: up one dir, main page]

Skip to content

Commit

Permalink
ensured constexpr for the new key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JustasMasiulis authored Jul 26, 2018
1 parent 7a4cd61 commit e18a73a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/xorstr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ namespace jm {
template<std::size_t S>
constexpr std::uint64_t key8()
{
constexpr auto first_part = key4<2166136261 + S>();
return (static_cast<std::uint64_t>(first_part) << 32) |
detail::key4<first_part>();
constexpr auto first_part = key4<2166136261 + S>();
constexpr auto second_part = key4<first_part>();
return (static_cast<std::uint64_t>(first_part) << 32) | second_part;
}

template<class T>
Expand Down

0 comments on commit e18a73a

Please sign in to comment.