diff --git a/src/system/kernel/util/list.cpp b/src/system/kernel/util/list.cpp index 7f7341172a..39a30b02eb 100644 --- a/src/system/kernel/util/list.cpp +++ b/src/system/kernel/util/list.cpp @@ -5,6 +5,7 @@ #include +#include #include @@ -13,6 +14,9 @@ #define GET_LINK(list, item) ({ BytePointer pointer((uint8*)item \ + list->offset); &pointer; }) +STATIC_ASSERT(sizeof(DoublyLinkedListLink) == sizeof(list_link)); + + /** Initializes the list with a specified offset to the link * structure in the items that will be part of the list. */