Mercurial > emacs
diff src/buffer.c @ 46588:c725edd73e4c
comment last change
| author | Ken Raeburn <raeburn@raeburn.org> |
|---|---|
| date | Sun, 21 Jul 2002 14:11:55 +0000 |
| parents | 8d0730b0e14c |
| children | 44651cb24a24 |
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;
