mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 07:00:34 +08:00
Warning fixes
This commit is contained in:
@@ -68,7 +68,7 @@ TEST(FloatSpec, Basic)
|
||||
-std::numeric_limits<double>::infinity(),
|
||||
nanl("")
|
||||
};
|
||||
static const int NumValues = sizeof(Values) / sizeof(Values[0]);
|
||||
static const int NumValues = int(sizeof(Values) / sizeof(Values[0]));
|
||||
|
||||
static const long double ValuesF16S[] =
|
||||
{
|
||||
|
||||
@@ -322,7 +322,7 @@ TEST(TransferReceiver, IntervalMeasurement)
|
||||
ASSERT_EQ(0x3231, rcv.getLastTransferCrc());
|
||||
ASSERT_EQ(timestamp, rcv.getLastTransferTimestampMonotonic().toUSec());
|
||||
|
||||
timestamp += INTERVAL;
|
||||
timestamp += uint64_t(INTERVAL);
|
||||
tid.increment();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user