changeset 46585:8d0730b0e14c

(mmap_realloc): When shrinking, make sure number of pages is rounded towards zero.
author Ken Raeburn <raeburn@raeburn.org>
date Sun, 21 Jul 2002 13:58:53 +0000
parents f548d7d0c651
children 4eb0a4f3ceea
files src/buffer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sun Jul 21 13:49:06 2002 +0000
+++ b/src/buffer.c	Sun Jul 21 13:58:53 2002 +0000
@@ -4670,7 +4670,7 @@
 	{
 	  /* Shrinking by at least a page.  Let's give some
 	     memory back to the system.  */
-	  mmap_enlarge (r, - (room - nbytes) / mmap_page_size);
+	  mmap_enlarge (r, - ((room - nbytes) / mmap_page_size));
 	  result = *var;
 	  r->nbytes_specified = nbytes;
 	}