diff options
Diffstat (limited to 'src/math.cpp')
| -rw-r--r-- | src/math.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |
