Browse Source

Merge pull request #1308 from Predelnik/PR

Cast pointer to ptrdiff_t to make code less undefined for 64-bit.
pull/197/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
624b84e8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/list.h

4
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<T> *NextLink(size_t offset = -1)
{
if ((int)m_nextNode <= 0)
if ((ptrdiff_t)m_nextNode <= 0)
return (TLink<T> *)~((size_t)m_nextNode);
if ((int)offset < 0) {

Loading…
Cancel
Save