[cig-commits] [commit] master: Try to fix 32 bit test failure (745a760)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Mon Nov 10 12:10:44 PST 2014
Repository : https://github.com/geodynamics/vq
On branch : master
Link : https://github.com/geodynamics/vq/compare/197914f4e03e55d321cae45161deafb1a5ade706...9ebb976b0ec90f56c8c1abfcd43d67ae38f64e87
>---------------------------------------------------------------
commit 745a76094261b9b66d2190b2452367d2b4b7ca42
Author: Eric Heien <emheien at ucdavis.edu>
Date: Mon Nov 10 12:00:02 2014 -0800
Try to fix 32 bit test failure
>---------------------------------------------------------------
745a76094261b9b66d2190b2452367d2b4b7ca42
quakelib/src/QuakeLibUtil.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quakelib/src/QuakeLibUtil.h b/quakelib/src/QuakeLibUtil.h
index 0e36462..5ab2e2b 100644
--- a/quakelib/src/QuakeLibUtil.h
+++ b/quakelib/src/QuakeLibUtil.h
@@ -485,7 +485,7 @@ namespace quakelib {
//! Convert seconds to years.
static double sec2year(const double &seconds) {
- return seconds*(1.0/60.0)*(1.0/60.0)*(1.0/24.0)*(1.0/365.25);
+ return seconds/(60.0*60.0*24.0*365.25);
};
//! Convert meters per second into centimeters per year.
More information about the CIG-COMMITS
mailing list