mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Fix typo in mmap() Windows implementation
This commit is contained in:
parent
e62ff3e19c
commit
d3279d3c0d
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ static void *__maps_pickaddr(size_t size) {
|
||||||
if (!addr)
|
if (!addr)
|
||||||
addr = __maps_randaddr();
|
addr = __maps_randaddr();
|
||||||
if (!__maps_overlaps(addr, size, __pagesize)) {
|
if (!__maps_overlaps(addr, size, __pagesize)) {
|
||||||
__maps.pick = addr + ((size + __gransize - 1) & __gransize);
|
__maps.pick = addr + ((size + __gransize - 1) & -__gransize);
|
||||||
__maps_unlock();
|
__maps_unlock();
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue