diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:52:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:52:22 +0000 |
commit | 3a1720af1d7f43edc5b214cde0be11bfb94d077e (patch) | |
tree | 029e0ff2d5e3c0eaf2405fd8e669555fdf5e1297 /lib/scudo/standalone/list.h | |
parent | 8f3cadc28cb2bb9e8f9d69eeaaea1f57f2f7b2ab (diff) |
Notes
Diffstat (limited to 'lib/scudo/standalone/list.h')
-rw-r--r-- | lib/scudo/standalone/list.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/scudo/standalone/list.h b/lib/scudo/standalone/list.h index 139e73eff5ad..6a7b9bd747a7 100644 --- a/lib/scudo/standalone/list.h +++ b/lib/scudo/standalone/list.h @@ -106,17 +106,17 @@ template <class Item> struct IntrusiveList { void checkConsistency() { if (Size == 0) { - CHECK_EQ(First, 0); - CHECK_EQ(Last, 0); + CHECK_EQ(First, nullptr); + CHECK_EQ(Last, nullptr); } else { - uptr count = 0; + uptr Count = 0; for (Item *I = First;; I = I->Next) { - count++; + Count++; if (I == Last) break; } - CHECK_EQ(size(), count); - CHECK_EQ(Last->Next, 0); + CHECK_EQ(size(), Count); + CHECK_EQ(Last->Next, nullptr); } } |