From c080801637b5b3c1fe7462829411a6859ce581dd Mon Sep 17 00:00:00 2001 From: Charles Karney Date: Tue, 17 Sep 2019 11:50:45 -0400 Subject: Fix floating-point number into integer warning in math.cpp --- src/math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math.cpp') diff --git a/src/math.cpp b/src/math.cpp index 0ec4f57f..6c1b6d1b 100644 --- a/src/math.cpp +++ b/src/math.cpp @@ -65,7 +65,7 @@ double pj_hypot(double x, double y) { x /= y; /* y is nonzero */ return y * sqrt(1 + x * x); } else { - y /= (x ? x : 1); + y /= (x != 0 ? x : 1); return x * sqrt(1 + y * y); } } -- cgit v1.2.3