Changeset 9962 in ntrip for trunk/BNC/src/RTCM3


Ignore:
Timestamp:
Jan 26, 2023, 12:19:20 PM (22 months ago)
Author:
stuerze
Message:

minor changes to be msvc compatible

Location:
trunk/BNC/src/RTCM3/clock_and_orbit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp

    r9210 r9962  
    2121size_t SsrCorrIgs::MakeClockOrbit(const struct ClockOrbit *co, ClockOrbitType type,
    2222    int moremessagesfollow, char *buffer, size_t size) {
    23 
    24   unsigned int status[CLOCKORBIT_SATNUM][COBOFS_NUM], i, s;
    25 
    26   memset(status, 0, sizeof(status));
     23  std::vector< std::vector<unsigned int> > status(CLOCKORBIT_SATNUM, std::vector<unsigned int>(COBOFS_NUM));
     24  unsigned int i, s;
     25
     26  //memset(status, 0, sizeof(status));
    2727
    2828  STARTDATA
     
    8989    if (status[s][COBOFS_COMBINED]) {
    9090#ifdef SPLITBLOCK
    91       int nums = co->NumberOfSat[s];
    92       int left, start = satoffset[s];
     91      unsigned int nums = co->NumberOfSat[s];
     92      unsigned int left, start = satoffset[s];
    9393      if(nums > 28) {/* split block when more than 28 sats */
    9494        left = nums - 28;
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.cpp

    r9210 r9962  
    2121size_t SsrCorrRtcm::MakeClockOrbit(const struct ClockOrbit *co, ClockOrbitType type,
    2222    int moremessagesfollow, char *buffer, size_t size) {
    23   unsigned int status[CLOCKORBIT_SATNUM][COBOFS_NUM], i, s;
    24 
    25   memset(status, 0, sizeof(status));
     23  std::vector< std::vector<unsigned int> > status(CLOCKORBIT_SATNUM, std::vector<unsigned int>(COBOFS_NUM));
     24  unsigned int i, s;
     25
     26  //memset(status, 0, sizeof(status));
    2627
    2728  STARTDATA
Note: See TracChangeset for help on using the changeset viewer.