Squash a warning

pull/3577/head
Eric Wieser 2022-07-13 08:57:31 +01:00 committed by GitHub
parent ad4da95ca1
commit 876de47953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class wrapped_int
// allow implicit conversions from any builtin types that `T` allows conversions from
template<typename T2,
typename = typename std::enable_if<std::is_convertible<T2, T>::value && std::is_arithmetic<T2>::value>::type>
wrapped_int(T2 val) : m_val(val) {}
wrapped_int(T2 val) : m_val(static_cast<T>(val)) {}
bool operator==(const wrapped_int& other) const
{