pages is rounded towards zero.
+2002-07-21 Ken Raeburn <raeburn@gnu.org>
+
+ * buffer.c (mmap_realloc): When shrinking, make sure number of
+ pages is rounded towards zero.
+
2002-07-20 Richard M. Stallman <rms@gnu.org>
* print.c (print_error_message): New args CONTEXT and CALLER.
{
/* 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;
}