You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/01/01 14:46:32 UTC
svn commit: r1554618 - /subversion/trunk/subversion/libsvn_subr/string.c
Author: stefan2
Date: Wed Jan 1 13:46:32 2014
New Revision: 1554618
URL: http://svn.apache.org/r1554618
Log:
No functional change.
* subversion/libsvn_subr/string.c
(membuf_ensure): Remove outdated and confusing comments.
Modified:
subversion/trunk/subversion/libsvn_subr/string.c
Modified: subversion/trunk/subversion/libsvn_subr/string.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/string.c?rev=1554618&r1=1554617&r2=1554618&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/string.c (original)
+++ subversion/trunk/subversion/libsvn_subr/string.c Wed Jan 1 13:46:32 2014
@@ -78,14 +78,10 @@ membuf_ensure(void **data, apr_size_t *s
apr_size_t new_size = *size;
if (new_size == 0)
- /* APR will increase odd allocation sizes to the next
- * multiple for 8, for instance. Take advantage of that
- * knowledge and allow for the extra size to be used. */
new_size = minimum_size;
else
while (new_size < minimum_size)
{
- /* new_size is aligned; doubling it should keep it aligned */
const apr_size_t prev_size = new_size;
new_size *= 2;