You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2011/05/20 00:50:22 UTC

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

Author: ivan
Date: Thu May 19 22:50:22 2011
New Revision: 1125157

URL: http://svn.apache.org/viewvc?rev=1125157&view=rev
Log:
Fix a compiler warning.

* subversion/libsvn_subr/cache-membuffer.c
  (initialize_group): Use NO_OFFSET constant instead of -1.

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=1125157&r1=1125156&r2=1125157&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-membuffer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Thu May 19 22:50:22 2011
@@ -692,7 +692,7 @@ initialize_group(svn_membuffer_t *cache,
 
   entry = &cache->directory[0][0];
   for (i = first_index; i < last_index; ++i)
-    entry[i].offset = -1;
+    entry[i].offset = NO_OFFSET;
 
   /* set the "initialized" bit for these groups */
   bit_mask = 1 << ((group_index / GROUP_INIT_GRANULARITY) % 8);