mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 15:47:36 +08:00
Coverity 1304852
This commit is contained in:
@@ -350,8 +350,8 @@ public:
|
||||
const ValueType* end() const { return data_ + Base::size(); }
|
||||
ValueType& front() { return at(0U); }
|
||||
const ValueType& front() const { return at(0U); }
|
||||
ValueType& back() { return at(SizeType(Base::size() - 1U)); }
|
||||
const ValueType& back() const { return at(SizeType(Base::size() - 1U)); }
|
||||
ValueType& back() { return at((Base::size() == 0U) ? 0U : SizeType(Base::size() - 1U)); }
|
||||
const ValueType& back() const { return at((Base::size() == 0U) ? 0U : SizeType(Base::size() - 1U)); }
|
||||
|
||||
/**
|
||||
* Performs standard lexicographical compare of the elements.
|
||||
|
||||
Reference in New Issue
Block a user