Skip to content

Commit

Permalink
Fix int cast
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Oct 5, 2023
1 parent 98e79dd commit 584a2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environment/global/gnss_satellites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,8 @@ void GnssSat_clock::SetUp(const double start_unix_time, const double step_sec) {
continue;
}

int index = lower_bound(unixtime_vector_.at(gnss_satellite_id).begin(), unixtime_vector_.at(gnss_satellite_id).end(), start_unix_time) -
unixtime_vector_.at(gnss_satellite_id).begin();
int index = (int)(lower_bound(unixtime_vector_.at(gnss_satellite_id).begin(), unixtime_vector_.at(gnss_satellite_id).end(), start_unix_time) -
unixtime_vector_.at(gnss_satellite_id).begin());
if (index == (int)unixtime_vector_.at(gnss_satellite_id).size()) {
validate_.at(gnss_satellite_id) = false;
nearest_index_.at(gnss_satellite_id) = index;
Expand Down

0 comments on commit 584a2d8

Please sign in to comment.