From bd8938985e9653601491742c9e4a4cfbe22e73ec Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 7 Sep 2003 18:27:54 +0000 Subject: * 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. --- winsup/cygwin/cygheap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/cygheap.cc') diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 07151e960..af53795d0 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; } -- cgit v1.2.3