From 2583cc88dea50d143a27aeafaa0870cc668662c4 Mon Sep 17 00:00:00 2001 From: Thomas Szepe Date: Wed, 30 Dec 2015 12:45:36 +0100 Subject: Fix Moto overflow warnings This fault (level 2, C4056) was introduced by changing Moto from double to float. --- intern/moto/include/MT_Scalar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/moto') diff --git a/intern/moto/include/MT_Scalar.h b/intern/moto/include/MT_Scalar.h index 93bd1a2e3ab..94723f4d7ec 100644 --- a/intern/moto/include/MT_Scalar.h +++ b/intern/moto/include/MT_Scalar.h @@ -61,7 +61,7 @@ const MT_Scalar MT_PI(3.14159265358979323846); const MT_Scalar MT_2_PI(6.28318530717958623200); const MT_Scalar MT_EPSILON(1.0e-10); const MT_Scalar MT_EPSILON2(1.0e-20); -const MT_Scalar MT_INFINITY(1.0e50); +const MT_Scalar MT_INFINITY(1.0e38); inline int MT_sign(MT_Scalar x) { return x < 0.0f ? -1 : x > 0.0f ? 1 : 0; -- cgit v1.2.3