[gnome-clocks/wip/cityimages] Mark earth_radius value as double



commit e30fe1c25b4cc335c5b3af807104bac5d1c531ba
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date:   Thu Sep 19 11:35:11 2013 +0200

    Mark earth_radius value as double

 src/geocoding.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/geocoding.vala b/src/geocoding.vala
index 02e1824..e2d5518 100644
--- a/src/geocoding.vala
+++ b/src/geocoding.vala
@@ -146,7 +146,7 @@ public class Info : Object {
     }
 
     private double get_distance (double latitude1, double longitude1, double latitude2, double longitude2) {
-        const double earth_radius = 6372.795;
+        const double earth_radius = 6372.795d;
 
         double lat1 = deg_to_rad (latitude1);
         double lat2 = deg_to_rad (latitude2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]