aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/util/timehist.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/util/timehist.c')
-rw-r--r--contrib/unbound/util/timehist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/unbound/util/timehist.c b/contrib/unbound/util/timehist.c
index dbf5b98417c2..61cc995fd8ef 100644
--- a/contrib/unbound/util/timehist.c
+++ b/contrib/unbound/util/timehist.c
@@ -225,23 +225,23 @@ timehist_quartile(struct timehist* hist, double q)
}
void
-timehist_export(struct timehist* hist, size_t* array, size_t sz)
+timehist_export(struct timehist* hist, long long* array, size_t sz)
{
size_t i;
if(!hist) return;
if(sz > hist->num)
sz = hist->num;
for(i=0; i<sz; i++)
- array[i] = hist->buckets[i].count;
+ array[i] = (long long)hist->buckets[i].count;
}
void
-timehist_import(struct timehist* hist, size_t* array, size_t sz)
+timehist_import(struct timehist* hist, long long* array, size_t sz)
{
size_t i;
if(!hist) return;
if(sz > hist->num)
sz = hist->num;
for(i=0; i<sz; i++)
- hist->buckets[i].count = array[i];
+ hist->buckets[i].count = (size_t)array[i];
}