aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-22 08:10:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-22 08:10:00 +0200
commit23a168e7889cb9219575cfb8f78521bcab45605c (patch)
treee9fd424368f4cba8273ed2bce3b33dff0725f3f8
parent634d73eb9a84e27cecf0cc39cf371f5d16556514 (diff)
Fix minor issue in small_vector
-rw-r--r--libbutl/small-vector.mxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/small-vector.mxx b/libbutl/small-vector.mxx
index eb1223e..fb77935 100644
--- a/libbutl/small-vector.mxx
+++ b/libbutl/small-vector.mxx
@@ -85,7 +85,7 @@ LIBBUTL_MODEXPORT namespace butl
{
assert (n >= N); // We should never be asked for less than N.
- if (n <= N)
+ if (n == N)
{
buf_->free_ = false;
return reinterpret_cast<T*> (buf_->data_);