diff options
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 */ |
