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 2010/08/22 13:17:00 UTC

svn commit: r987865 - /subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c

Author: stefan2
Date: Sun Aug 22 11:16:59 2010
New Revision: 987865

URL: http://svn.apache.org/viewvc?rev=987865&view=rev
Log:
(Partly) fix Visual Studio build: 
the declaration order was not conforming to C

* subversion/libsvn_subr/svn_temp_serializer.c
  (store_current_end_pointer): fix target_ptr declaration

Patch by: Johan Corveleyn <jc...@gmail.com>

Modified:
    subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c

Modified: subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c
URL: http://svn.apache.org/viewvc/subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c?rev=987865&r1=987864&r2=987865&view=diff
==============================================================================
--- subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c (original)
+++ subversion/branches/performance/subversion/libsvn_subr/svn_temp_serializer.c Sun Aug 22 11:16:59 2010
@@ -143,6 +143,7 @@ store_current_end_pointer(svn_temp_seria
 {
   apr_size_t ptr_offset;
   apr_size_t target_offset;
+  apr_size_t *target_ptr;
 
   /* if *source_pointer is the root struct, there will be no parent structure
    * to relate it to */
@@ -160,7 +161,7 @@ store_current_end_pointer(svn_temp_seria
   assert(context->buffer->len > ptr_offset);
 
   /* use the serialized pointer as a storage for the offset */
-  apr_size_t *target_ptr = (apr_size_t*)(context->buffer->data + ptr_offset);
+  target_ptr = (apr_size_t*)(context->buffer->data + ptr_offset);
 
   /* store the current buffer length because that's where we will append
    * the serialized data of the sub-struct or string */