diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-16 21:49:49 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-16 21:49:49 +0000 |
commit | 9c76cd60efd969240c519cecdaa338200e4d47b1 (patch) | |
tree | cdc5b1ac497af80932ddbedac8e8a065c50bb5a7 /tables | |
parent | 9ed3be9fdffc39e1da41008022f3200175b2e3dc (diff) | |
download | libapr-9c76cd60efd969240c519cecdaa338200e4d47b1.tar.gz |
We play pointer math with local 'i', so it must be apr_size_t.
Until we decide otherwise, cast the pointer math result back to an
int for a nelts result.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@170468 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r-- | tables/apr_tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c index da17e2867..c1128c65d 100644 --- a/tables/apr_tables.c +++ b/tables/apr_tables.c @@ -970,7 +970,7 @@ static apr_table_entry_t **table_mergesort(apr_pool_t *pool, */ apr_table_entry_t **values_tmp = (apr_table_entry_t **)apr_palloc(pool, n * sizeof(apr_table_entry_t*)); - int i; + apr_size_t i; int blocksize; /* First pass: sort pairs of elements (blocksize=1) */ @@ -1156,7 +1156,7 @@ APR_DECLARE(void) apr_table_compress(apr_table_t *t, unsigned flags) *dst++ = *src; } } while (++src < last_elt); - t->a.nelts -= (last_elt - dst); + t->a.nelts -= (int)(last_elt - dst); } table_reindex(t); |