From 0114576befde75dfe17c608f34c58113a80f2480 Mon Sep 17 00:00:00 2001 From: TinyO Date: Mon, 21 Oct 2019 17:20:06 +0800 Subject: [PATCH] fix(*): windows complie error. --- src/mynteye/device/channel/channels.cc | 2 +- src/mynteye/device/streams.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mynteye/device/channel/channels.cc b/src/mynteye/device/channel/channels.cc index 9db6824..7d82c35 100644 --- a/src/mynteye/device/channel/channels.cc +++ b/src/mynteye/device/channel/channels.cc @@ -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; } } diff --git a/src/mynteye/device/streams.cc b/src/mynteye/device/streams.cc index a446062..98bb599 100644 --- a/src/mynteye/device/streams.cc +++ b/src/mynteye/device/streams.cc @@ -59,7 +59,7 @@ void Streams::CheckTimeStampLimmit(std::shared_ptr 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; } }