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/03/25 17:42:16 UTC

svn commit: r927492 - /subversion/trunk/subversion/libsvn_subr/stream.c

Author: stsp
Date: Thu Mar 25 16:42:15 2010
New Revision: 927492

URL: http://svn.apache.org/viewvc?rev=927492&view=rev
Log:
* subversion/libsvn_subr/stream.c
  (read_range_handler_apr): Fix a warning on 64 bit architecture about
   an explicit cast by making the cast explicit. The cast is safe in
   this case.

Found by: gstein's compiler

Modified:
    subversion/trunk/subversion/libsvn_subr/stream.c

Modified: subversion/trunk/subversion/libsvn_subr/stream.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/stream.c?rev=927492&r1=927491&r2=927492&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/stream.c (original)
+++ subversion/trunk/subversion/libsvn_subr/stream.c Thu Mar 25 16:42:15 2010
@@ -851,7 +851,7 @@ read_range_handler_apr(void *baton, char
 
       /* We're in range, but don't read over the end of the range. */
       if (pos + *len > btn->end)
-        *len = btn->end - pos;
+        *len = (apr_size_t)(btn->end - pos);
     }
 
   return read_handler_apr(baton, buffer, len);