aboutsummaryrefslogtreecommitdiff
path: root/src/sbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbuffer.cpp')
-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