Changeset 11096 in ntrip for trunk/BNC/src/satObs.cpp


Ignore:
Timestamp:
Oct 16, 2026, 3:37:24 PM (3 weeks ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/satObs.cpp

    r11047 r11096  
    33#include <sstream>
    44#include <cstdlib>
     5#include <limits>
    56#include <newmatio.h>
    67
    … …  
    604605        string valStr; // may be "nan" (invalid value), which operator>> can't parse
    605606        in >> valStr;
    606         frqAntenna._nadirAngleCorrection.push_back(strtod(valStr.c_str(), 0));
     607        // not strtod(): it follows LC_NUMERIC, QByteArray::toDouble() the C locale
     608        frqAntenna._nadirAngleCorrection.push_back(valStr.find("nan") != string::npos ? std::numeric_limits<double>::quiet_NaN()
     609                                                                    : QByteArray(valStr.c_str()).toDouble());
    607610      }
    608611      satAntenna._freq.push_back(frqAntenna);
Note: See TracChangeset for help on using the changeset viewer.