From 7572ba58cba276f4bd7d63dedb47c3c43d3b9f00 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 28 May 2014 15:40:25 +0100 Subject: [PATCH] fix : allow comparing nullptr == nullptr -> true --- src/layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer.cpp b/src/layer.cpp index cba5bf86e..a82c4717b 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -108,7 +108,7 @@ bool layer::operator==(layer const& rhs) const (cache_features_ == rhs.cache_features_) && (group_by_ == rhs.group_by_) && (styles_ == rhs.styles_) && - ((ds_ && rhs.ds_) ? *ds_ == *rhs.ds_ : false) && + ((ds_ && rhs.ds_) ? *ds_ == *rhs.ds_ : ds_ == rhs.ds_) && (buffer_size_ == rhs.buffer_size_) && (maximum_extent_ == rhs.maximum_extent_); }