[sword-svn] r2023 - trunk/src/modules/common

dglassey at www.crosswire.org dglassey at www.crosswire.org
Fri Dec 8 09:06:19 MST 2006


Author: dglassey
Date: 2006-12-08 09:06:19 -0700 (Fri, 08 Dec 2006)
New Revision: 2023

Modified:
   trunk/src/modules/common/zverse.cpp
Log:
need to cast to get rid of the warning ;)


Modified: trunk/src/modules/common/zverse.cpp
===================================================================
--- trunk/src/modules/common/zverse.cpp	2006-12-08 16:00:32 UTC (rev 2022)
+++ trunk/src/modules/common/zverse.cpp	2006-12-08 16:06:19 UTC (rev 2023)
@@ -256,7 +256,7 @@
 
 void zVerse::zReadText(char testmt, long start, unsigned short size, SWBuf &inBuf) {
 	inBuf = "";
-	if ( (size > 0) && cacheBuf && ((start+size) <= strlen(cacheBuf)) ){ //TODO: optimize this, remove strlen
+	if ( (size > 0) && cacheBuf && ((unsigned)(start+size) <= strlen(cacheBuf)) ){ //TODO: optimize this, remove strlen
 		inBuf.setFillByte(0);
 		inBuf.setSize(size+1);
 		strncpy(inBuf.getRawData(), &(cacheBuf[start]), size);




More information about the sword-cvs mailing list