Browse Source

[master] explicit cast NULL in EXPECT_EQ; some compilers bare NULL.

this fixes build failure reported at:
http://git.bind10.isc.org/~tester/builder//BIND10/20120825015000-Solaris10-sparc-Sunstudio/logs/build.out
JINMEI Tatuya 12 years ago
parent
commit
76fa08f868
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/datasrc/memory/tests/zone_table_unittest.cc

+ 2 - 1
src/lib/datasrc/memory/tests/zone_table_unittest.cc

@@ -123,7 +123,8 @@ TEST_F(ZoneTableTest, findZone) {
 
     EXPECT_EQ(result::NOTFOUND,
               zone_table->findZone(Name("example.org")).code);
-    EXPECT_EQ(NULL, zone_table->findZone(Name("example.org")).zone_data);
+    EXPECT_EQ(static_cast<ZoneData*>(NULL),
+              zone_table->findZone(Name("example.org")).zone_data);
 
     // there's no exact match.  the result should be the longest match,
     // and the code should be PARTIALMATCH.