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/cygheap.cc | |
parent | ed2287adcd6b16a0ef34defb443d5c61fc7830d7 (diff) | |
download | newlib-bd8938985e9653601491742c9e4a4cfbe22e73ec.zip newlib-bd8938985e9653601491742c9e4a4cfbe22e73ec.tar.gz newlib-bd8938985e9653601491742c9e4a4cfbe22e73ec.tar.bz2 |
* 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/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 07151e9..af53795 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -179,14 +179,14 @@ _csbrk (int sbs) { void *prebrk = cygheap_max; void *prebrka = pagetrunc (prebrk); - (char *) cygheap_max += sbs; + cygheap_max = (char *) cygheap_max + sbs; if (!sbs || (prebrk != prebrka && prebrka == pagetrunc (cygheap_max))) /* nothing to do */; else if (!VirtualAlloc (prebrk, (DWORD) sbs, MEM_COMMIT, PAGE_READWRITE)) { malloc_printf ("couldn't commit memory for cygwin heap, %E"); __seterrno (); - (char *) cygheap_max -= sbs; + cygheap_max = (char *) cygheap_max - sbs; return NULL; } |