Skip to content

Commit 3fb3173

Browse files
committed
Span: Fix odd condition in Span::empty.
1 parent 43170d2 commit 3fb3173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/Span.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct Span {
111111
*/
112112
bool empty() const
113113
{
114-
return size() ? false : true;
114+
return size() == 0;
115115
}
116116

117117
/**
@@ -281,7 +281,7 @@ struct Span<T, SPAN_DYNAMIC_EXTENT> {
281281
*/
282282
bool empty() const
283283
{
284-
return size() ? false : true;
284+
return size() == 0;
285285
}
286286

287287
/**

0 commit comments

Comments
 (0)