public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] [Aarch64] Fix warning in _sbrk
@ 2018-10-05 12:22 Richard Earnshaw
0 siblings, 0 replies; only message in thread
From: Richard Earnshaw @ 2018-10-05 12:22 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9edf0810db87603fc5c71db20ffc5b955c9adc42
commit 9edf0810db87603fc5c71db20ffc5b955c9adc42
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date: Mon Oct 1 19:08:40 2018 +0000
[Aarch64] Fix warning in _sbrk
2018-10-01 Christophe Lyon <christophe.lyon@linaro.org>
* libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to
"char *".
Diff:
---
libgloss/aarch64/syscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c
index 8198d3e..e6dd4bd 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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-05 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05 12:22 [newlib-cygwin] [Aarch64] Fix warning in _sbrk Richard Earnshaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).