[sword-svn] r3440 - trunk/include

scribe at crosswire.org scribe at crosswire.org
Sun Oct 23 01:37:17 MST 2016


Author: scribe
Date: 2016-10-23 01:37:17 -0700 (Sun, 23 Oct 2016)
New Revision: 3440

Modified:
   trunk/include/swbuf.h
Log:
updated cast from int to unsigned int to match receiving variable

Modified: trunk/include/swbuf.h
===================================================================
--- trunk/include/swbuf.h	2016-10-23 08:32:02 UTC (rev 3439)
+++ trunk/include/swbuf.h	2016-10-23 08:37:17 UTC (rev 3440)
@@ -445,7 +445,7 @@
 	/**
 	 * @return returns true if this buffer ends with the specified postfix
 	 */
-	inline bool endsWith(const char *postfix) const { unsigned int psize = (int)strlen(postfix); return (size() >= psize)?!strncmp(end-psize, postfix, psize):false; }
+	inline bool endsWith(const char *postfix) const { unsigned int psize = (unsigned int)strlen(postfix); return (size() >= psize)?!strncmp(end-psize, postfix, psize):false; }
 
 	// be sure we've been given a valid pointer to compare.  If not, we return !=; specifically less-than, for lack of better options
 	inline int compare(const char *other) const { return (other?strcmp(c_str(), other):-1); }




More information about the sword-cvs mailing list