[Scummvm-cvs-logs] SF.net SVN: scummvm: [22998] scummvm/trunk/common/str.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Sat Jun 10 09:56:22 CEST 2006


Revision: 22998
Author:   sev
Date:     2006-06-10 00:56:09 -0700 (Sat, 10 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22998&view=rev

Log Message:
-----------
Patch #1503718: "Strange results from Common::computeCapacity"

Modified Paths:
--------------
    scummvm/trunk/common/str.cpp
Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp	2006-06-10 07:21:26 UTC (rev 22997)
+++ scummvm/trunk/common/str.cpp	2006-06-10 07:56:09 UTC (rev 22998)
@@ -40,7 +40,7 @@
 	// grows a bit).
 	// Finally, we subtract 1 to compensate for the trailing zero byte.
 	len += 16;
-	return (len + 32 - 1) & ~0x1F - 1;
+	return ((len + 32 - 1) & ~0x1F) - 1;
 }
 
 String::String(const char *str, int len, int capacity)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list