diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-04-22 22:39:57 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-04-23 10:26:14 +0200 |
| commit | 6f640d76e13cb643574b44b7498d51ecff6fb83e (patch) | |
| tree | ac17c997cf7efcea8854e3e1a616ede93ea07ebf /src/pj_apply_vgridshift.c | |
| parent | e197e40e9b9ae99b8dac569428af35036822dca2 (diff) | |
| download | PROJ-6f640d76e13cb643574b44b7498d51ecff6fb83e.tar.gz PROJ-6f640d76e13cb643574b44b7498d51ecff6fb83e.zip | |
Add isnan() to proj_math.h
Code updated to use isnan() instead of pj_is_nan().
Diffstat (limited to 'src/pj_apply_vgridshift.c')
| -rw-r--r-- | src/pj_apply_vgridshift.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_apply_vgridshift.c b/src/pj_apply_vgridshift.c index 05803bc8..e7106b25 100644 --- a/src/pj_apply_vgridshift.c +++ b/src/pj_apply_vgridshift.c @@ -29,7 +29,7 @@ #define PJ_LIB__ #include <string.h> -#include <math.h> +#include "proj_math.h" #include "proj_internal.h" #include "projects.h" @@ -42,7 +42,7 @@ static double read_vgrid_value( PJ *defn, LP input, int *gridlist_count_p, PJ_GR float *cvs; /* do not deal with NaN coordinates */ /* cppcheck-suppress duplicateExpression */ - if( pj_is_nan(input.phi) || pj_is_nan(input.lam) ) + if( isnan(input.phi) || isnan(input.lam) ) itable = *gridlist_count_p; /* keep trying till we find a table that works */ |
