changeset 46588:c725edd73e4c

comment last change
author Ken Raeburn <raeburn@raeburn.org>
date Sun, 21 Jul 2002 14:11:55 +0000
parents 6a1f8909a52e
children 87e738861af2
files src/buffer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sun Jul 21 14:09:56 2002 +0000
+++ b/src/buffer.c	Sun Jul 21 14:11:55 2002 +0000
@@ -4669,7 +4669,11 @@
       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;