From 5c942ddcf713c2fa8910f53c238b55fd2b8a23f3 Mon Sep 17 00:00:00 2001
From: rulrich <ralf.m.ulrich@kit.edu>
Date: Fri, 13 Nov 2020 12:32:44 +0100
Subject: [PATCH] type cast

---
 Processes/TrackingLeapFrogCurved/Tracking.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Processes/TrackingLeapFrogCurved/Tracking.h b/Processes/TrackingLeapFrogCurved/Tracking.h
index 4ffa43828..2f3b770c1 100644
--- a/Processes/TrackingLeapFrogCurved/Tracking.h
+++ b/Processes/TrackingLeapFrogCurved/Tracking.h
@@ -67,7 +67,7 @@ namespace corsika::process {
       direction =
           direction + direction.cross(magneticfield) * steplength * k; // Second Movement
       position = position + direction * steplength / 2;
-      auto steplength_true = steplength * (1.0 + double(direction.norm())) / 2;
+      auto steplength_true = steplength * (1.0 + (double)direction.norm()) / 2;
       return std::make_tuple(position, direction.normalized(), steplength_true);
     }
 
-- 
GitLab