diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-17 19:40:31 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | 7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4 (patch) | |
| tree | ab4f11dc730c386ce76fcbb9e219b233504955e7 /src/mod360.cpp | |
| parent | Run clang-tidy’s modernize-use-equals-default pass. (diff) | |
| download | inkscape-7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4.tar.gz inkscape-7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4.zip | |
Run clang-tidy’s modernize-deprecated-headers pass.
This renames most C <*.h> includes into C++ <c*> includes.
Diffstat (limited to 'src/mod360.cpp')
| -rw-r--r-- | src/mod360.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod360.cpp b/src/mod360.cpp index ce5cea33a..6a5ce3d20 100644 --- a/src/mod360.cpp +++ b/src/mod360.cpp @@ -1,5 +1,5 @@ #include <glib.h> -#include <math.h> +#include <cmath> #include "mod360.h" @@ -9,7 +9,7 @@ double mod360(double const x) { double const m = fmod(x, 360.0); - double const ret = ( isnan(m) + double const ret = ( std::isnan(m) ? 0.0 : ( m < 0 ? m + 360 |
