From 4aa8a68faa86d6e1c6ecaeabcec487ee30eff813 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 24 Sep 2014 15:10:18 +0200 Subject: [PATCH] nodeGetFreePages: Push forgotten change In the previous patch I've changed the for loop bounds but forgot to 'git add' changes that adapt the rest of the code. Signed-off-by: Michal Privoznik --- src/nodeinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 04ae38223e..3bc0c3cc47 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -2041,7 +2041,7 @@ nodeGetFreePages(unsigned int npages, goto cleanup; } - lastCell = MIN(lastCell, startCell + cellCount); + lastCell = MIN(lastCell, startCell + (int) cellCount - 1); for (cell = startCell; cell <= lastCell; cell++) { for (i = 0; i < npages; i++) {