mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 02:43:33 +08:00
GDTR list integrity check (debug builds only)
This commit is contained in:
@@ -103,7 +103,7 @@ GlobalDataTypeRegistry::RegistResult GlobalDataTypeRegistry::registImpl(Entry* d
|
|||||||
#if UAVCAN_DEBUG
|
#if UAVCAN_DEBUG
|
||||||
{ // List integrity check
|
{ // List integrity check
|
||||||
const unsigned len_after = list->getLength();
|
const unsigned len_after = list->getLength();
|
||||||
if (len_before >= len_after)
|
if ((len_before + 1) != len_after)
|
||||||
{
|
{
|
||||||
assert(0);
|
assert(0);
|
||||||
std::abort();
|
std::abort();
|
||||||
|
|||||||
Reference in New Issue
Block a user