Fix off-by-one error in |decay|.

This commit is contained in:
waterson%netscape.com 2001-11-19 02:47:42 +00:00
parent 09c156f8b3
commit d7552b30c5

View File

@ -118,7 +118,7 @@ static void
decay()
{
unsigned char *page = pages;
unsigned char *last_page = pages + maxpage - minpage;
unsigned char *last_page = pages + (maxpage - minpage) + 1;
for (; page < last_page; ++page) {
if (*page) {
*page /= 8;