Skip to content

Commit

Permalink
FIT : No NaN in float values
Browse files Browse the repository at this point in the history
  • Loading branch information
grauser committed Feb 5, 2017
1 parent ef77336 commit 5c2b5d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FileIO/FitRideFile.cpp
Expand Up @@ -2418,8 +2418,9 @@ struct FitFileReaderState
size = 4;
value.type = FloatValue;
value.f = read_float32(&count);
if (value.f != value.f) // No NAN
value.f = 0;
size = field.size;

break;

//case 9: // FLOAT64
Expand Down

0 comments on commit 5c2b5d7

Please sign in to comment.