[sword-cvs] sword/include swbuf.h,1.26,1.27
sword@www.crosswire.org
sword@www.crosswire.org
Sun, 21 Dec 2003 03:57:37 -0700
Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv1899/include
Modified Files:
swbuf.h
Log Message:
Index: swbuf.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swbuf.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- swbuf.h 21 Dec 2003 10:54:58 -0000 1.26
+++ swbuf.h 21 Dec 2003 10:57:35 -0000 1.27
@@ -193,7 +193,7 @@
inline SWBuf &operator -=(unsigned long len) { setSize(length()-len); return *this; }
inline SWBuf &operator --(int) { operator -=(1); return *this; }
- inline SWBuf &operator <<(int n) { n = (n<length())?n:length(); memmove(buf, buf+n, length()-n); (*this)-=n; return *this; }
+ inline SWBuf &operator <<(int n) { n = (n<length())?n:(length()-1); memmove(buf, buf+n, length()-n); (*this)-=n; return *this; }
inline SWBuf operator +(const SWBuf &other) const {
SWBuf retVal = buf;
retVal += other;