* cygheap.cc (_csbrk): More left coercion cleanup.
* fhandler_tty.cc (fhandler_tty_slave::read): Ditto. (fhandler_tty_slave::write): Ditto. * fhandler_windows.cc (fhandler_windows::read): Ditto. * heap.cc (sbrk): Ditto.
This commit is contained in:
@@ -146,7 +146,7 @@ sbrk (int n)
|
||||
|| VirtualAlloc (cygheap->user_heap.top, newbrksize = commitbytes, MEM_RESERVE, PAGE_NOACCESS))
|
||||
&& VirtualAlloc (cygheap->user_heap.top, commitbytes, MEM_COMMIT, PAGE_READWRITE) != NULL)
|
||||
{
|
||||
(char *) cygheap->user_heap.max += pround (newbrksize);
|
||||
cygheap->user_heap.max = (char *) cygheap->user_heap.max + pround (newbrksize);
|
||||
goto good;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user