[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:
parent
3878d82a2b
commit
9edf0810db
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue