diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 00:22:03 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 11:25:14 +0100 |
| commit | 66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d (patch) | |
| tree | f148438285557a491088b4042a1dfab80f80d577 /src/rtodms.c | |
| parent | b288ee6bbc345baf2ef56aaec49184c34a6cd0dd (diff) | |
| download | PROJ-66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d.tar.gz PROJ-66e04bf4e5cdb27a44e9bea6bacad22c02df2f0d.zip | |
Fix warnings related to -Wshadow -Wnull-dereference -Wfloat-conversionr -Wmissing-prototypes -Wmissing-declarations
Diffstat (limited to 'src/rtodms.c')
| -rw-r--r-- | src/rtodms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtodms.c b/src/rtodms.c index fa5c3cd1..5e88ca14 100644 --- a/src/rtodms.c +++ b/src/rtodms.c @@ -49,9 +49,9 @@ rtodms(char *s, double r, int pos, int neg) { r = floor(r * CONV + .5); sec = fmod(r / RES, 60.); r = floor(r / RES60); - min = fmod(r, 60.); - r = floor(r / 60.); - deg = r; + min = (int)fmod(r, 60.); + r = floor(r / 60.); + deg = (int)r; if (dolong) (void)sprintf(ss,format,deg,min,sec,sign); |
