8214125: [test] Fix comparison between pointer and integer in test_ptrQueueBufferAllocator.cpp
authorsimonis
Tue, 20 Nov 2018 19:06:34 +0100
changeset 52624 bbdebc744bf3
parent 52623 ba5c08883729
child 52625 5e23b9a66fe6
8214125: [test] Fix comparison between pointer and integer in test_ptrQueueBufferAllocator.cpp Reviewed-by: mdoerr, shade, stuefe, tschatzl
test/hotspot/gtest/gc/shared/test_ptrQueueBufferAllocator.cpp
--- 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());
     }