[sword-svn] r1792 - trunk/include

jansorg at crosswire.org jansorg at crosswire.org
Tue May 3 02:08:35 MST 2005


Author: jansorg
Date: 2005-05-03 02:08:34 -0700 (Tue, 03 May 2005)
New Revision: 1792

Modified:
   trunk/include/swbuf.h
Log:
Fix warning about comparision of signed and unsigned ints

Modified: trunk/include/swbuf.h
===================================================================
--- trunk/include/swbuf.h	2005-05-03 03:52:13 UTC (rev 1791)
+++ trunk/include/swbuf.h	2005-05-03 09:08:34 UTC (rev 1792)
@@ -48,7 +48,7 @@
 	static char junkBuf[JUNKBUFSIZE];
 
 	inline void assureMore(size_t pastEnd) {
-		if (endAlloc-end < pastEnd) {
+		if (size_t(endAlloc-end) < pastEnd) {
 			assureSize(allocSize + pastEnd);
 		}
 	}



More information about the sword-cvs mailing list