From 28dd17cbccda4746f1ab9f63e4eb159d4fc777f4 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 12 Aug 2021 13:57:35 +0800 Subject: [PATCH] Whoops --- Week 3-workshop/haversine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week 3-workshop/haversine.c b/Week 3-workshop/haversine.c index c5c10c2..a783258 100644 --- a/Week 3-workshop/haversine.c +++ b/Week 3-workshop/haversine.c @@ -15,7 +15,7 @@ double radians_to_degrees(double radians) { bool valid_location(double latitude, double longitude) { return latitude > -90 && latitude <= 90 - && longitude > 0 && longitude <= 360; + && longitude > -180 && longitude <= 180; } double __sin_sqr_delta(double x1, double x2) {