[Aarch64] Fix warning in _sbrk

2018-10-01  Christophe Lyon  <christophe.lyon@linaro.org>

    	* libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to
    	"char *".
This commit is contained in:
Christophe Lyon 2018-10-01 19:08:40 +00:00 committed by Richard Earnshaw
parent 3878d82a2b
commit 9edf0810db
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ _sbrk (int incr)
if ((heap_end + incr > stack_ptr)
/* Honour heap limit if it's valid. */
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > __heap_limit)))
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > (char *)__heap_limit)))
{
/* Some of the libstdc++-v3 tests rely upon detecting
out of memory errors, so do not abort here. */