You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2011/05/16 17:38:39 UTC

svn commit: r1103772 - /subversion/trunk/subversion/libsvn_subr/cache-membuffer.c

Author: julianfoad
Date: Mon May 16 15:38:38 2011
New Revision: 1103772

URL: http://svn.apache.org/viewvc?rev=1103772&view=rev
Log:
* subversion/libsvn_subr/cache-membuffer.c
  (ALIGN_VALUE): Put parentheses around macro argument for future safety.

Modified:
    subversion/trunk/subversion/libsvn_subr/cache-membuffer.c

Modified: subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-membuffer.c?rev=1103772&r1=1103771&r2=1103772&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-membuffer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Mon May 16 15:38:38 2011
@@ -418,7 +418,7 @@ struct svn_membuffer_t
 
 /* Align integer VALUE to the next ITEM_ALIGNMENT boundary.
  */
-#define ALIGN_VALUE(value) ((value + ITEM_ALIGNMENT-1) & -ITEM_ALIGNMENT) 
+#define ALIGN_VALUE(value) (((value) + ITEM_ALIGNMENT-1) & -ITEM_ALIGNMENT)
 
 /* Align POINTER value to the next ITEM_ALIGNMENT boundary.
  */