diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-07 18:27:54 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-07 18:27:54 +0000 |
commit | bd8938985e9653601491742c9e4a4cfbe22e73ec (patch) | |
tree | 69a1c31ecc44996034c523ae50aa1b98d86ede35 /winsup/cygwin/heap.cc | |
parent | ed2287adcd6b16a0ef34defb443d5c61fc7830d7 (diff) | |
download | cygnal-bd8938985e9653601491742c9e4a4cfbe22e73ec.tar.gz cygnal-bd8938985e9653601491742c9e4a4cfbe22e73ec.tar.bz2 cygnal-bd8938985e9653601491742c9e4a4cfbe22e73ec.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/heap.cc')
-rw-r--r-- | winsup/cygwin/heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc index 5157a564d..a3f79033f 100644 --- a/winsup/cygwin/heap.cc +++ b/winsup/cygwin/heap.cc @@ -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; } |