Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rcl_yaml_param_parser/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,10 @@ static void * get_value(
{
errno = 0;
endptr = NULL;
if (strcasecmp(value, ".nan") == 0) {
char * tmp_value = (char *)value;
snprintf(tmp_value, strlen(tmp_value), "%s", "nan");
}
dval = strtod(value, &endptr);
if ((0 == errno) && (NULL != endptr)) {
if ((NULL != endptr) && (endptr != value)) {
Expand Down