From: ian Date: Tue, 9 May 2000 22:08:06 +0000 (+0000) Subject: @@ -1,6 +1,8 @@ X-Git-Tag: wip.base.getaddrinfo~168 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/647d5ec13ca244649b75827dba159422b0833f7d @@ -1,6 +1,8 @@ + * Call MEM_ROUND in __transfer_interim (avoids assert fail + `qu->interim_allocd>=0' on some platforms eg 64 bit). --- 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;