From a24b67f758c6d192a1c5de32a98279c69cb7d12f Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 7 Oct 2013 04:36:47 -0600 Subject: [PATCH] Fix signedness comparison in SBuf --- src/SBuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SBuf.h b/src/SBuf.h index 7a073640ec..cf07a3015d 100644 --- a/src/SBuf.h +++ b/src/SBuf.h @@ -417,7 +417,7 @@ public: * \throw SBufTooBigException if the user tries to allocate too big a SBuf */ void reserveSpace(size_type minSpace) { - Must(0 <= minSpace); + Must(minSpace < maxSize); Must(length() <= maxSize - minSpace); reserveCapacity(length()+minSpace); } -- 2.47.3