summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_port_memory.c')
-rw-r--r--src/nxt_port_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index 774f1f33..b908041c 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -49,10 +49,10 @@ nxt_port_mmap_at(nxt_port_mmaps_t *port_mmaps, uint32_t i)
while (i + 1 > cap) {
if (cap < 16) {
- cap = cap * 2;
+ cap = cap * 2;
} else {
- cap = cap + cap / 2;
+ cap = cap + cap / 2;
}
}