Browse Source

[Aarch64] Fix warning in _sbrk

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

    	* libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to
    	"char *".
sh3port
Christophe Lyon 1 year ago
committed by Richard Earnshaw
parent
commit
9edf0810db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libgloss/aarch64/syscalls.c

+ 1
- 1
libgloss/aarch64/syscalls.c 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. */


Loading…
Cancel
Save