Skip to content

Commit af8d567

Browse files
Fix isnan issues on Win
1 parent 0e1d5e8 commit af8d567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/ros1_parsers/ros1_parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool IntrospectionParser::parseMessage(MessageRef serialized_msg, double timesta
6464

6565
auto& series = getSeries(key);
6666

67-
if (!std::isnan(value) && !std::isinf(value))
67+
if (!std::isnan(static_cast<double>(value)) && !std::isinf(value))
6868
{
6969
series.pushBack({ timestamp, value });
7070
}

0 commit comments

Comments
 (0)