mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1012971 - Fix compiler warnings in mfbt r=nbp
This commit is contained in:
parent
676a95176a
commit
975e232d61
@ -338,7 +338,7 @@ struct FuzzyEqualsEpsilon<float>
|
||||
{
|
||||
// A number near 1e-5 that is exactly representable in
|
||||
// floating point
|
||||
static const float value() { return 1.0f / (1 << 17); }
|
||||
static float value() { return 1.0f / (1 << 17); }
|
||||
};
|
||||
|
||||
template<>
|
||||
@ -346,7 +346,7 @@ struct FuzzyEqualsEpsilon<double>
|
||||
{
|
||||
// A number near 1e-12 that is exactly representable in
|
||||
// a double
|
||||
static const double value() { return 1.0 / (1LL << 40); }
|
||||
static double value() { return 1.0 / (1LL << 40); }
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
|
@ -290,8 +290,8 @@ template <typename T>
|
||||
struct TypeSpecificScopedPointerTraits
|
||||
{
|
||||
typedef T* type;
|
||||
const static type empty() { return nullptr; }
|
||||
const static void release(type value)
|
||||
static type empty() { return nullptr; }
|
||||
static void release(type value)
|
||||
{
|
||||
if (value)
|
||||
TypeSpecificDelete(value);
|
||||
|
Loading…
Reference in New Issue
Block a user