Skip to content

Commit

Permalink
fix: build error on 32bit
Browse files Browse the repository at this point in the history
fix #24
  • Loading branch information
MistEO committed Dec 22, 2023
1 parent 9ba93f3 commit da08dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/packed_bytes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct packed_bytes_trait_uint64
{
static constexpr bool available = sizeof(void*) >= 8;
static constexpr auto step = 8;
using value_type = std::enable_if_t<sizeof(void*) >= 8, uint64_t>;
using value_type = uint64_t;

__packed_bytes_strong_inline static value_type load_unaligned(const void* ptr)
{
Expand Down Expand Up @@ -121,7 +121,7 @@ struct packed_bytes_trait_uint32
template <>
struct packed_bytes<8>
{
using traits = std::enable_if_t<packed_bytes_trait_uint64::available, packed_bytes_trait_uint64>;
using traits = packed_bytes_trait_uint64;
};

template <>
Expand Down

0 comments on commit da08dc9

Please sign in to comment.