From 20f47de382c9baa3f4ee3b146d19e35b9aa3861d Mon Sep 17 00:00:00 2001 From: Edgar Velazquez-Armendariz Date: Mon, 12 Aug 2013 16:58:16 -0400 Subject: [PATCH] Use shorter preprocessor definitions to avoid crashes in MSVC --- include/mitsuba/core/constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mitsuba/core/constants.h b/include/mitsuba/core/constants.h index c788bc73..5a04abc9 100644 --- a/include/mitsuba/core/constants.h +++ b/include/mitsuba/core/constants.h @@ -50,8 +50,8 @@ #if defined(__WINDOWS__) #define ONE_MINUS_EPS_FLT 0.999999940395355225f #define ONE_MINUS_EPS_DBL 0.999999999999999888 -#define RCPOVERFLOW_FLT 0.00000000000000000000000000000000000000293873587705571876 -#define RCPOVERFLOW_DBL 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000556268464626800345 +#define RCPOVERFLOW_FLT 2.93873587705571876e-39 +#define RCPOVERFLOW_DBL 5.56268464626800345e-309 #else #define ONE_MINUS_EPS_FLT 0x1.fffffep-1f #define ONE_MINUS_EPS_DBL 0x1.fffffffffffff7p-1