Skip to content

Commit

Permalink
Fix constexpr impl bc i trolled
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 9, 2024
1 parent 403fac8 commit bd089fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libhat/Scanner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace hat {
if LIBHAT_IF_CONSTEVAL {
constexpr size_t sz = sizeof(Int);
return std::bit_cast<Int>([=, this]<size_t... Index>(std::index_sequence<Index...>) {
return std::array<T, sz>{this->result + offset + Index...};
return std::array<std::byte, sz>{(this->result + offset)[Index]...};
}(std::make_index_sequence<sz>{}));
} else {
Int value;
Expand Down

0 comments on commit bd089fb

Please sign in to comment.