[gnome-clocks] Mark earth_radius value as double
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Mark earth_radius value as double
- Date: Mon, 14 Oct 2013 19:47:27 +0000 (UTC)
commit c7265efd8563424202b155bc0f4eaa4c0132ce46
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]