diff --git a/Source/list.h b/Source/list.h index c9b2f2847..154f9beca 100644 --- a/Source/list.h +++ b/Source/list.h @@ -186,14 +186,14 @@ public: T *Next() { - if ((int)m_nextNode <= 0) + if ((ptrdiff_t)m_nextNode <= 0) return NULL; return m_nextNode; } TLink *NextLink(size_t offset = -1) { - if ((int)m_nextNode <= 0) + if ((ptrdiff_t)m_nextNode <= 0) return (TLink *)~((size_t)m_nextNode); if ((int)offset < 0) {