From 6bcdeb8c243c2b9de61f5d03a5a9928d8e2d1749 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 21 Jul 2002 14:11:55 +0000 Subject: [PATCH] comment last change --- src/buffer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index bf1b49e6ff4..fd2de4a2408 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4669,7 +4669,11 @@ mmap_realloc (var, nbytes) else if (room - nbytes >= mmap_page_size) { /* Shrinking by at least a page. Let's give some - memory back to the system. */ + memory back to the system. + + The extra parens are to make the division happens first, + on positive values, so we know it will round towards + zero. */ mmap_enlarge (r, - ((room - nbytes) / mmap_page_size)); result = *var; r->nbytes_specified = nbytes; -- 2.39.5