Skip to content

Commit

Permalink
avoid using C++11 isnan
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Dec 22, 2018
1 parent 768bd5c commit be8d772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ebus/datatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ result_t NumberDataType::readSymbols(size_t offset, size_t length, const SymbolS
}
}
#endif
if (isnan(val)) {
if (val!=val) { // !isnan(val)
if (outputFormat & OF_JSON) {
*output << "null";
} else {
Expand Down

0 comments on commit be8d772

Please sign in to comment.