fix(*): windows complie error.

This commit is contained in:
TinyO 2019-10-21 17:20:06 +08:00
parent 36e1d27d92
commit 0114576bef
2 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ void Channels::CheckTimeStampLimmit(mynteye::ImuPacket2 &packet) {
}
if (is_nearly_before_timestamp_limmit_ > 0) {
is_nearly_before_timestamp_limmit_--;
if (abs(current_datum_ - segment2.timestamp) > (u_int64_t)(42949672960/2)) { // NOLINT
if (abs(current_datum_ - segment2.timestamp) > (uint64_t)(42949672960/2)) { // NOLINT
segment2.timestamp -= 42949672960;
}
}

View File

@ -59,7 +59,7 @@ void Streams::CheckTimeStampLimmit(std::shared_ptr<ImgData> img) {
}
if (is_nearly_before_timestamp_limmit_ > 0) {
is_nearly_before_timestamp_limmit_--;
if (abs(current_datum_ - img->timestamp) > (u_int64_t)(42949672960/2)) { // NOLINT
if (abs(current_datum_ - img->timestamp) > (uint64_t)(42949672960/2)) { // NOLINT
img->timestamp -= 42949672960;
}
}