aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_unitconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_unitconvert.c')
-rw-r--r--src/PJ_unitconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_unitconvert.c b/src/PJ_unitconvert.c
index 36461150..fc90821b 100644
--- a/src/PJ_unitconvert.c
+++ b/src/PJ_unitconvert.c
@@ -252,7 +252,7 @@ static double mjd_to_yyyymmdd(double mjd) {
day = (int)(mjd - mjd_iter + 1);
- return year*10000 + month*100 + day;
+ return year*10000.0 + month*100.0 + day;
}