Browse Source

[master] Replaced a NULL not accepted by old GCC in C++0x mode by a cast

Francis Dupont 8 years ago
parent
commit
22d0c2205a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/util/memory_segment_local.cc

+ 1 - 1
src/lib/util/memory_segment_local.cc

@@ -50,7 +50,7 @@ MemorySegmentLocal::getNamedAddressImpl(const char* name) const {
     if (found != named_addrs_.end()) {
         return (NamedAddressResult(true, found->second));
     }
-    return (NamedAddressResult(false, NULL));
+    return (NamedAddressResult(false, static_cast<void*>(0)));
 }
 
 bool