From 2a10c1e08e554b6012a9e9fbde8e14eb38c40ee5 Mon Sep 17 00:00:00 2001
From: Walter Van Herck <w.van.herck@fz-juelich.de>
Date: Tue, 4 Feb 2014 17:19:06 +0100
Subject: [PATCH] Small correction to remove eclipse parsing error

---
 Core/Algorithms/src/Beam.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Core/Algorithms/src/Beam.cpp b/Core/Algorithms/src/Beam.cpp
index 49228ffa0b9..e6c7e34197c 100644
--- a/Core/Algorithms/src/Beam.cpp
+++ b/Core/Algorithms/src/Beam.cpp
@@ -82,7 +82,7 @@ bool Beam::checkPolarization(const Eigen::Matrix2cd &polarization) const
     if (std::imag( (complex_t)polarization(0,0) ) != 0.0) return false;
     if (polarization(0,0)+polarization(1,1) != 1.0) return false;
     if (polarization(0,1) != std::conj( (complex_t)polarization(1,0))) return false;
-    if (std::abs( polarization.determinant() ) < 0.0) return false;
+    if (std::abs( (complex_t)polarization.determinant() ) < 0.0) return false;
 
     return true;
 }
-- 
GitLab