aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/alloc.c')
-rw-r--r--libs/libc/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c
index 6663a0e..f02b015 100644
--- a/libs/libc/alloc.c
+++ b/libs/libc/alloc.c
@@ -91,9 +91,9 @@ static struct liballoc_major *allocate_new_page(u32 size)
u32 st = size + MAJOR_SIZE + MINOR_SIZE;
if ((st % l_page_size) == 0)
- st = st / (l_page_size);
+ st = st / l_page_size;
else
- st = st / (l_page_size) + 1;
+ st = st / l_page_size + 1;
st = MAX(st, l_page_count);