mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 18:43:33 +08:00
More warning fixes in the STM32 drvier, STM32 test project and the library core
This commit is contained in:
@@ -56,7 +56,7 @@ protected:
|
||||
throw std::out_of_range("uavcan::Array");
|
||||
#else
|
||||
UAVCAN_ASSERT(0);
|
||||
return Size - 1; // Ha ha
|
||||
return SizeType(Size - 1U); // Ha ha
|
||||
#endif
|
||||
}
|
||||
};
|
||||
@@ -87,7 +87,7 @@ protected:
|
||||
throw std::out_of_range("uavcan::Array");
|
||||
#else
|
||||
UAVCAN_ASSERT(0);
|
||||
return (size_ == 0) ? 0 : (size_ - 1);
|
||||
return SizeType((size_ == 0U) ? 0U : (size_ - 1U));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user