From 34709898f4fe108779a10ca7d37dc2f4197a65cd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 16 Aug 2019 22:05:34 -0700 Subject: Blob defaulted to an invalid size. This broke a lot of operations, and was stupid. --- src/unstable/blob.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/unstable') diff --git a/src/unstable/blob.cpp b/src/unstable/blob.cpp index 9abfede..3395fae 100644 --- a/src/unstable/blob.cpp +++ b/src/unstable/blob.cpp @@ -14,7 +14,7 @@ Bu::Blob::Blob() : pData( 0 ), - iSize( -1 ) + iSize( 0 ) { } @@ -56,7 +56,7 @@ Bu::Blob::Blob( const void *pSrc, int32_t iSize ) : Bu::Blob::Blob( const Bu::Blob::const_iterator &iStart ) : pData( 0 ), - iSize( -1 ) + iSize( 0 ) { if( !iStart ) return; @@ -69,7 +69,7 @@ Bu::Blob::Blob( const Bu::Blob::const_iterator &iStart ) : Bu::Blob::Blob( const Bu::Blob::const_iterator &iStart, const Bu::Blob::const_iterator &iEnd ) : pData( 0 ), - iSize( -1 ) + iSize( 0 ) { if( !iStart ) return; @@ -91,7 +91,7 @@ Bu::Blob::~Blob() { delete[] pData; pData = 0; - iSize = -1; + iSize = 0; } int32_t Bu::Blob::getSize() const -- cgit v1.2.3