mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fix warning (fmt_unveil)
This commit is contained in:
parent
738a7cac4f
commit
841d8955de
1 changed files with 4 additions and 4 deletions
|
@ -91,9 +91,9 @@ struct fmt_unveil<T, std::enable_if_t<std::is_enum<T>::value>>
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct fmt_unveil<T*, void>
|
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);
|
return reinterpret_cast<std::uintptr_t>(arg);
|
||||||
}
|
}
|
||||||
|
@ -102,9 +102,9 @@ struct fmt_unveil<T*, void>
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
struct fmt_unveil<T[N], void>
|
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);
|
return reinterpret_cast<std::uintptr_t>(arg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue