From 3dbef075272d266576d34718f1297373f77f07f8 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 9 May 2000 22:08:06 +0000 Subject: [PATCH] + * Call MEM_ROUND in __transfer_interim (avoids assert fail @@ -1,6 +1,8 @@ + * Call MEM_ROUND in __transfer_interim (avoids assert fail + `qu->interim_allocd>=0' on some platforms eg 64 bit). --- changelog | 2 ++ src/query.c | 1 + 2 files changed, 3 insertions(+) diff --git a/changelog b/changelog index 20fcbf2..2b3bbf5 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,8 @@ adns (0.9) unstable; urgency=low * Move `extern "C" {' to after #include <...>'s. + * Call MEM_ROUND in __transfer_interim (avoids assert fail + `qu->interim_allocd>=0' on some platforms eg 64 bit). -- diff --git a/src/query.c b/src/query.c index a720f20..966f409 100644 --- a/src/query.c +++ b/src/query.c @@ -374,6 +374,7 @@ void adns__transfer_interim(adns_query from, adns_query to, void *block, size_t LIST_UNLINK(from->allocations,an); LIST_LINK_TAIL(to->allocations,an); + sz= MEM_ROUND(sz); from->interim_allocd -= sz; to->interim_allocd += sz; -- 2.30.2