Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-10-01 22:08:40 +0300
committerRichard Earnshaw <Richard.Earnshaw@arm.com>2018-10-05 15:21:54 +0300
commit9edf0810db87603fc5c71db20ffc5b955c9adc42 (patch)
tree8e20a22da071c2b74f1d466cd33ece45836d9a26 /libgloss/aarch64
parent3878d82a2b901f064e1f24b07520f2c38937c1f5 (diff)
[Aarch64] Fix warning in _sbrk
2018-10-01 Christophe Lyon <christophe.lyon@linaro.org> * libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to "char *".
Diffstat (limited to 'libgloss/aarch64')
-rw-r--r--libgloss/aarch64/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c
index 8198d3ed0..e6dd4bd75 100644
--- a/libgloss/aarch64/syscalls.c
+++ b/libgloss/aarch64/syscalls.c
@@ -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. */