Skip to content

Commit

Permalink
mingw fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Sep 9, 2024
1 parent 642368a commit 5113f71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions runtime/src/zserio/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class IntWrapper : public TypeWrapper<VALUE_TYPE>
};

template <typename VALUE_TYPE>
class DynIntWrapper : public IntWrapper<VALUE_TYPE>
class DynIntWrapper : public IntWrapper<VALUE_TYPE, 8 * sizeof(VALUE_TYPE)>
{
public:
using IntWrapper<VALUE_TYPE>::IntWrapper;
using IntWrapper<VALUE_TYPE, 8 * sizeof(VALUE_TYPE)>::IntWrapper;
};

enum class VarIntType : uint8_t
Expand Down Expand Up @@ -108,8 +108,7 @@ struct needs_range_check<VarIntWrapper<VALUE_TYPE, VAR_TYPE>>
template <typename TYPE_WRAPPER>
struct RangeChecker
{
static constexpr void check(typename TYPE_WRAPPER::value_type value) noexcept(
!detail::needs_range_check_v<TYPE_WRAPPER>)
static constexpr void check(typename TYPE_WRAPPER::value_type value)
{
if constexpr (std::is_signed_v<typename TYPE_WRAPPER::value_type>)
{
Expand Down

0 comments on commit 5113f71

Please sign in to comment.