Speculative fix for fmt::format

This commit is contained in:
Nekotekina 2017-03-05 21:42:54 +03:00
parent 9a9455a696
commit a2200bd01e
3 changed files with 4 additions and 4 deletions

View file

@ -60,9 +60,9 @@ struct fmt_unveil<T, std::enable_if_t<std::is_floating_point<T>::value && sizeof
using type = T;
// Convert FP to f64 and reinterpret (TODO?)
static inline u64 get(f64 arg)
static inline u64 get(const f64 arg)
{
return reinterpret_cast<u64&>(arg);
return *reinterpret_cast<const u64*>(reinterpret_cast<const u8*>(&arg));
}
};