From 045b1acef672f3e38dedfb07a47e232612686c25 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Fri, 10 Sep 1999 17:00:55 +0000
Subject: [PATCH] Tweaks from Durk.

---
 src/Time/mymath.cxx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Time/mymath.cxx b/src/Time/mymath.cxx
index 5f288d0a1..af33f3caa 100755
--- a/src/Time/mymath.cxx
+++ b/src/Time/mymath.cxx
@@ -52,8 +52,8 @@ double Vector::VecLen()
 
    double length = 0;
    for (int i= 0; i < nrData; i++)
-		length += powl(data[i],2);
-   return sqrtl(length);
+		length += pow(data[i],2);
+   return sqrt(length);
 }
 
 
@@ -89,10 +89,12 @@ Vector VecCross(Vector first, Vector second)
             exit(1);
         }
         #endif
+	
 	double x = first.data[1] * second.data[2] - first.data[2]*second.data[1];
         double y = first.data[2] * second.data[0] - first.data[0]*second.data[2];
         double z = first.data[0] * second.data[1] - first.data[1]*second.data[0];
-	return Vector(x,y,z);
+	Vector result(x,y,z);
+	return result;
 }