Skip to content

Commit

Permalink
Fix typo in mmap() Windows implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Nov 1, 2024
1 parent e62ff3e commit d3279d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/intrin/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ static void *__maps_pickaddr(size_t size) {
if (!addr)
addr = __maps_randaddr();
if (!__maps_overlaps(addr, size, __pagesize)) {
__maps.pick = addr + ((size + __gransize - 1) & __gransize);
__maps.pick = addr + ((size + __gransize - 1) & -__gransize);
__maps_unlock();
return addr;
}
Expand Down

0 comments on commit d3279d3

Please sign in to comment.