summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]opentrack/tracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index 6411db40..d7070eb4 100644..100755
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -65,7 +65,8 @@ void Tracker::t_compensate(const rmat& rmat, const double* xyz, double* output,
static inline bool nanp(double value)
{
- return std::isnan(value) || std::isinf(value);
+ const volatile double x = value;
+ return std::isnan(x) || std::isinf(x);
}
static inline double elide_nan(double value, double def)