Commit 53c64400 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Abbreviate assignment.

parent 0be9580d
...@@ -3836,8 +3836,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, ...@@ -3836,8 +3836,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if ( ncvars[ncvarid].lvalidrange == FALSE ) if ( ncvars[ncvarid].lvalidrange == FALSE )
{ {
extern int cdiIgnoreValidRange; extern int cdiIgnoreValidRange;
int lignore = FALSE; int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
if ( cdiIgnoreValidRange == FALSE && lignore == FALSE ) if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
{ {
cdfGetAttDouble(ncid, ncvarid, attname, 2, ncvars[ncvarid].validrange); cdfGetAttDouble(ncid, ncvarid, attname, 2, ncvars[ncvarid].validrange);
...@@ -3857,8 +3856,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, ...@@ -3857,8 +3856,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if ( ncvars[ncvarid].lvalidrange == FALSE ) if ( ncvars[ncvarid].lvalidrange == FALSE )
{ {
extern int cdiIgnoreValidRange; extern int cdiIgnoreValidRange;
int lignore = FALSE; int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
if ( cdiIgnoreValidRange == FALSE && lignore == FALSE ) if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
{ {
cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[0]); cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[0]);
...@@ -3875,8 +3873,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, ...@@ -3875,8 +3873,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if ( ncvars[ncvarid].lvalidrange == FALSE ) if ( ncvars[ncvarid].lvalidrange == FALSE )
{ {
extern int cdiIgnoreValidRange; extern int cdiIgnoreValidRange;
int lignore = FALSE; int lignore = xtypeIsFloat(atttype) != xtypeIsFloat(xtype);
if ( xtypeIsFloat(atttype) != xtypeIsFloat(xtype) ) lignore = TRUE;
if ( cdiIgnoreValidRange == FALSE && lignore == FALSE ) if ( cdiIgnoreValidRange == FALSE && lignore == FALSE )
{ {
cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[1]); cdfGetAttDouble(ncid, ncvarid, attname, 1, &(ncvars[ncvarid].validrange)[1]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment