From 3fb3173876e6b4b012f1a2dc7abfc2c488c49204 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Mon, 20 Aug 2018 10:30:35 +0100 Subject: [PATCH] Span: Fix odd condition in Span::empty. --- platform/Span.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/Span.h b/platform/Span.h index 54bd27749c..17c919cd28 100644 --- a/platform/Span.h +++ b/platform/Span.h @@ -111,7 +111,7 @@ struct Span { */ bool empty() const { - return size() ? false : true; + return size() == 0; } /** @@ -281,7 +281,7 @@ struct Span { */ bool empty() const { - return size() ? false : true; + return size() == 0; } /**