From 545e07c85bae971197126cb78e735d87914510ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 3 Dec 2013 20:51:29 +0100 Subject: [PATCH] Math: use proper suffixes for floating-point literals. Catched by MSVC (ha!). --- src/Math/TypeTraits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math/TypeTraits.h b/src/Math/TypeTraits.h index ce5708808..213052604 100644 --- a/src/Math/TypeTraits.h +++ b/src/Math/TypeTraits.h @@ -34,7 +34,7 @@ /** @brief Precision when testing floats for equality */ #ifndef FLOAT_EQUALITY_PRECISION -#define FLOAT_EQUALITY_PRECISION 1.0e-6 +#define FLOAT_EQUALITY_PRECISION 1.0e-6f #endif /** @brief Precision when testing doubles for equality */ @@ -47,7 +47,7 @@ @todo some proper value please */ #ifndef LONG_DOUBLE_EQUALITY_PRECISION -#define LONG_DOUBLE_EQUALITY_PRECISION 1.0e-18 +#define LONG_DOUBLE_EQUALITY_PRECISION 1.0e-18l #endif namespace Magnum { namespace Math {