Skip to content
Snippets Groups Projects
Commit 0be9580d authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Clarify assignments.

parent cd5eb5dc
No related branches found
No related tags found
No related merge requests found
...@@ -486,10 +486,7 @@ int xtypeIsText(int xtype) ...@@ -486,10 +486,7 @@ int xtypeIsText(int xtype)
static static
int xtypeIsFloat(int xtype) int xtypeIsFloat(int xtype)
{ {
int isFloat = FALSE; int isFloat = xtype == NC_FLOAT || xtype == NC_DOUBLE;
if ( xtype == NC_FLOAT || xtype == NC_DOUBLE ) isFloat = TRUE;
return isFloat; return isFloat;
} }
...@@ -710,8 +707,7 @@ void cdfDefTimeUnits(char *unitstr, taxis_t* taxis0, taxis_t* taxis) ...@@ -710,8 +707,7 @@ void cdfDefTimeUnits(char *unitstr, taxis_t* taxis0, taxis_t* taxis)
} }
else else
{ {
int timeunit = taxis->unit; int timeunit = taxis->unit != -1 ? taxis->unit : TUNIT_HOUR;
if ( timeunit == -1 ) timeunit = TUNIT_HOUR;
int rdate = taxis->rdate; int rdate = taxis->rdate;
int rtime = taxis->rtime; int rtime = taxis->rtime;
if ( rdate == -1 ) if ( rdate == -1 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment