mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Fix off-by-one error in |decay|.
This commit is contained in:
parent
09c156f8b3
commit
d7552b30c5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user