diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-03-24 11:20:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-24 11:20:55 +0100 |
| commit | 57f865df482b538482db9d24c82afa7506ff5132 (patch) | |
| tree | 58e6776680ae906d75906cfb8c5e4ff85315dedc /src | |
| parent | 0962d1ecf116e2eeeccfa6ce5c9613407691f38c (diff) | |
| parent | 8693457931a18d7b6e1e7a05362fa59419c8fca6 (diff) | |
| download | PROJ-57f865df482b538482db9d24c82afa7506ff5132.tar.gz PROJ-57f865df482b538482db9d24c82afa7506ff5132.zip | |
Merge pull request #895 from schwehr/use-pj-is-nan
Use pj_is_nan rather than x == x or x != x (#894)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_apply_vgridshift.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_apply_vgridshift.c b/src/pj_apply_vgridshift.c index 1b32c0f6..05803bc8 100644 --- a/src/pj_apply_vgridshift.c +++ b/src/pj_apply_vgridshift.c @@ -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( input.phi != input.phi || input.lam != input.lam ) + if( pj_is_nan(input.phi) || pj_is_nan(input.lam) ) itable = *gridlist_count_p; /* keep trying till we find a table that works */ |
