1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 12:31:45 +01:00

Fix warning (fmt_unveil)

This commit is contained in:
Nekotekina 2018-04-21 23:55:01 +03:00
parent 738a7cac4f
commit 841d8955de

View File

@ -91,9 +91,9 @@ struct fmt_unveil<T, std::enable_if_t<std::is_enum<T>::value>>
template <typename T>
struct fmt_unveil<T*, void>
{
using type = const T*;
using type = std::add_const_t<T>*;
static inline u64 get(const T* arg)
static inline u64 get(type arg)
{
return reinterpret_cast<std::uintptr_t>(arg);
}
@ -102,9 +102,9 @@ struct fmt_unveil<T*, void>
template <typename T, std::size_t N>
struct fmt_unveil<T[N], void>
{
using type = const T*;
using type = std::add_const_t<T>*;
static inline u64 get(const T* arg)
static inline u64 get(type arg)
{
return reinterpret_cast<std::uintptr_t>(arg);
}