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 2014/12/23 11:42:15 UTC
svn commit: r1647540 - /subversion/trunk/subversion/libsvn_fs_fs/stats.c
Author: ivan
Date: Tue Dec 23 10:42:15 2014
New Revision: 1647540
URL: http://svn.apache.org/r1647540
Log:
Fix signed/unsigned warnings in FSFS stats code.
* subversion/libsvn_fs_fs/stats.c
(add_change): Change type of REP_SIZE and EXPANDED_SIZE arguments to
apr_uint64_t.
(read_noderev): Do not cast apr_uint64_t to apr_int64_t when calling
add_change().
Modified:
subversion/trunk/subversion/libsvn_fs_fs/stats.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/stats.c?rev=1647540&r1=1647539&r2=1647540&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/stats.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/stats.c Tue Dec 23 10:42:15 2014
@@ -249,8 +249,8 @@ add_to_histogram(svn_fs_fs__histogram_t
*/
static void
add_change(svn_fs_fs__stats_t *stats,
- apr_int64_t rep_size,
- apr_int64_t expanded_size,
+ apr_uint64_t rep_size,
+ apr_uint64_t expanded_size,
svn_revnum_t revision,
const char *path,
rep_kind_t kind,
@@ -614,13 +614,12 @@ read_noderev(query_t *query,
/* record largest changes */
if (text && text->ref_count == 1)
- add_change(query->stats, (apr_int64_t)text->size,
- (apr_int64_t)text->expanded_size, text->revision,
+ add_change(query->stats, text->size, text->expanded_size, text->revision,
noderev->created_path, text->kind, !noderev->predecessor_id);
if (props && props->ref_count == 1)
- add_change(query->stats, (apr_int64_t)props->size,
- (apr_int64_t)props->expanded_size, props->revision,
- noderev->created_path, props->kind, !noderev->predecessor_id);
+ add_change(query->stats, props->size, props->expanded_size,
+ props->revision, noderev->created_path, props->kind,
+ !noderev->predecessor_id);
/* if this is a directory and has not been processed, yet, read and
* process it recursively */