From 50487a2c1da0ec7a84cf291bac028ff191cde1ea Mon Sep 17 00:00:00 2001
From: Sebastian Eibl <sebastian.eibl@fau.de>
Date: Mon, 27 Aug 2018 09:39:38 +0200
Subject: [PATCH] fixed sp warnings

---
 tests/mesh/MeshPeRaytracing.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/mesh/MeshPeRaytracing.cpp b/tests/mesh/MeshPeRaytracing.cpp
index b27143885..7fecb85a8 100644
--- a/tests/mesh/MeshPeRaytracing.cpp
+++ b/tests/mesh/MeshPeRaytracing.cpp
@@ -73,7 +73,7 @@ int CpRayIntersectionTest(const int resolution = 10)
       {
          const real_t rand2 = real_c(y) * dx;
          real_t theta = real_t(2) * M_PI * rand1;
-         real_t phi = acos(real_t(1) - real_t(2) * rand2);
+         real_t phi = std::acos(real_t(1) - real_t(2) * rand2);
          Vec3 dir(std::sin(phi) * std::cos(theta), std::sin(phi) * std::sin(theta), std::cos(phi));
 
          Ray ray( center + dir*real_t(5), -dir);
@@ -95,7 +95,7 @@ int CpRayIntersectionTest(const int resolution = 10)
       {
          const real_t rand2 = real_c(y) * dx;
          real_t theta = real_t(2) * M_PI * rand1;
-         real_t phi = acos(real_t(1) - real_t(2) * rand2);
+         real_t phi = std::acos(real_t(1) - real_t(2) * rand2);
          Vec3 dir(std::sin(phi) * std::cos(theta), std::sin(phi) * std::sin(theta), std::cos(phi));
 
          Ray ray( Vec3(real_t(5),real_t(5),real_t(5)), -dir);
-- 
GitLab