From fd4c480df7814715663bf529d788bcc59aa7c91a Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 25 Sep 2014 17:18:44 +0100 Subject: [PATCH] Merge cleanup. --- mode_s.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mode_s.c b/mode_s.c index 25943a5..569db3e 100644 --- a/mode_s.c +++ b/mode_s.c @@ -2100,7 +2100,8 @@ int decodeCPR(struct aircraft *a, int fflag, int surface) { } // Check to see that the latitude is in range: -90 .. +90 - if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90) return; + if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90) + return (-1); // Check that both are in the same latitude zone, or abort. if (cprNLFunction(rlat0) != cprNLFunction(rlat1))