summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-12 20:51:58 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-12 20:51:58 +0000
commitd236dc89dd5725396c415402af6bc18bb44624a5 (patch)
tree0a142be883575326645ee0ba570e51b74c6cec87 /src
parent299bb8f95890495cd6fc1a0a79c6531032f39772 (diff)
downloadlibbu++-d236dc89dd5725396c415402af6bc18bb44624a5.tar.gz
libbu++-d236dc89dd5725396c415402af6bc18bb44624a5.tar.bz2
libbu++-d236dc89dd5725396c415402af6bc18bb44624a5.tar.xz
libbu++-d236dc89dd5725396c415402af6bc18bb44624a5.zip
Really a nothing change, the array is slightly more optimized in one corner
case that you'll never care about. It didn't fix the strange warning messages though.
Diffstat (limited to 'src')
-rw-r--r--src/array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.h b/src/array.h
index c69d777..0fb0df3 100644
--- a/src/array.h
+++ b/src/array.h
@@ -148,7 +148,7 @@ namespace Bu
148 */ 148 */
149 void setCapacity( long iNewLen ) 149 void setCapacity( long iNewLen )
150 { 150 {
151 if( iNewLen < iCapacity ) return; 151 if( iNewLen <= iCapacity ) return;
152 value *pNewData = va.allocate( iNewLen ); 152 value *pNewData = va.allocate( iNewLen );
153 if( pData ) 153 if( pData )
154 { 154 {