aboutsummaryrefslogtreecommitdiff
path: root/src/sbuffer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-21 20:26:23 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-21 20:26:23 +0000
commit8fbf5fda24392d2a2ee19d6f40699a5de29da662 (patch)
treeac79c447bc4897d8cc350068504f184fdb8e4cfa /src/sbuffer.cpp
parent2bb05378f31311c353d43688fa753822ab9a6461 (diff)
downloadlibbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.gz
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.bz2
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.xz
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.zip
Everything in libbu++ now passes -Wall, this should have been done a long time
ago.
Diffstat (limited to '')
-rw-r--r--src/sbuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbuffer.cpp b/src/sbuffer.cpp
index 00324b5..0ed0f47 100644
--- a/src/sbuffer.cpp
+++ b/src/sbuffer.cpp
@@ -2,8 +2,8 @@
2#include "sbuffer.h" 2#include "sbuffer.h"
3 3
4SBuffer::SBuffer() : 4SBuffer::SBuffer() :
5 bOpen( true ), 5 nPos( 0 ),
6 nPos( 0 ) 6 bOpen( true )
7{ 7{
8} 8}
9 9
@@ -19,7 +19,7 @@ void SBuffer::close()
19 19
20size_t SBuffer::read( char *pBuf, size_t nBytes ) 20size_t SBuffer::read( char *pBuf, size_t nBytes )
21{ 21{
22 long nLeft = fbData.getLength() - nPos; 22 size_t nLeft = fbData.getLength() - nPos;
23 if( nBytes > nLeft ) 23 if( nBytes > nLeft )
24 nBytes = nLeft; 24 nBytes = nLeft;
25 25