Skip to content

Commit d3279d3

Browse files
committed
Fix typo in mmap() Windows implementation
1 parent e62ff3e commit d3279d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/intrin/mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static void *__maps_pickaddr(size_t size) {
420420
if (!addr)
421421
addr = __maps_randaddr();
422422
if (!__maps_overlaps(addr, size, __pagesize)) {
423-
__maps.pick = addr + ((size + __gransize - 1) & __gransize);
423+
__maps.pick = addr + ((size + __gransize - 1) & -__gransize);
424424
__maps_unlock();
425425
return addr;
426426
}

0 commit comments

Comments
 (0)