[sword-cvs] sword/include swbuf.h,1.32,1.33

sword@www.crosswire.org sword@www.crosswire.org
Fri, 9 Apr 2004 14:42:29 -0700


Update of /cvs/core/sword/include
In directory www:/tmp/cvs-serv30598/include

Modified Files:
	swbuf.h 
Log Message:

dglassey: change << and >> to unsigned long to avoid compiler warnings


Index: swbuf.h
===================================================================
RCS file: /cvs/core/sword/include/swbuf.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- swbuf.h	2 Apr 2004 23:54:45 -0000	1.32
+++ swbuf.h	9 Apr 2004 21:42:27 -0000	1.33
@@ -217,8 +217,8 @@
 	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()-1); memmove(buf, buf+n, length()-n); (*this)-=n; return *this; }
-	inline SWBuf &operator >>(int n) { setSize(length()+n); memmove(buf+n, buf, length()-n); return *this; }
+	inline SWBuf &operator <<(unsigned long n) { n = (n<length())?n:(length()-1); memmove(buf, buf+n, length()-n); (*this)-=n; return *this; }
+	inline SWBuf &operator >>(unsigned long n) { setSize(length()+n); memmove(buf+n, buf, length()-n); return *this; }
 	inline SWBuf operator +(const SWBuf &other) const {
 		SWBuf retVal = buf;
 		retVal += other;