changeset 53592:bbdebc744bf3

8214125: [test] Fix comparison between pointer and integer in test_ptrQueueBufferAllocator.cpp Reviewed-by: mdoerr, shade, stuefe, tschatzl
author simonis
date Tue, 20 Nov 2018 19:06:34 +0100
parents ba5c08883729
children 5e23b9a66fe6
files test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp	Tue Nov 20 09:22:13 2018 -0800
+++ b/test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp	Tue Nov 20 19:06:34 2018 +0100
@@ -39,7 +39,7 @@
   for (size_t i = 0; i < node_count; ++i) {
     ASSERT_EQ(0u, allocator.free_count());
     nodes[i] = allocator.allocate();
-    ASSERT_EQ(NULL, nodes[i]->next());
+    ASSERT_EQ((BufferNode*)NULL, nodes[i]->next());
   }
 
   // Release the nodes, adding them to the allocator's free list.
@@ -47,7 +47,7 @@
     ASSERT_EQ(i, allocator.free_count());
     allocator.release(nodes[i]);
     if (i == 0) {
-      ASSERT_EQ(NULL, nodes[i]->next());
+      ASSERT_EQ((BufferNode*)NULL, nodes[i]->next());
     } else {
       ASSERT_EQ(nodes[i - 1], nodes[i]->next());
     }