From 8d31e3733083a6018045af9d7961d0bff21be6e6 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 29 Oct 2006 21:54:18 +0000 Subject: [PATCH] * ralloc.c (relinquish): Use a long for excess space counter to handle 64-bit case correctly. --- src/ChangeLog | 5 +++++ src/ralloc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2aba406af37..27a229b0f68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-10-29 Mark Davies (tiny change) + + * ralloc.c (relinquish): Use a long for excess space counter to + handle 64-bit case correctly. + 2006-10-29 Jeramey Crawford * m/amdx86-64.h: Add defines for OpenBSD x86-64. diff --git a/src/ralloc.c b/src/ralloc.c index fea9ea5d0a8..83a26dd35d6 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -330,7 +330,7 @@ static void relinquish () { register heap_ptr h; - int excess = 0; + long excess = 0; /* Add the amount of space beyond break_value in all heaps which have extend beyond break_value at all. */ -- 2.39.2