From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113504 invoked by alias); 5 Oct 2018 12:22:19 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 113450 invoked by uid 9007); 5 Oct 2018 12:22:19 -0000 Date: Fri, 05 Oct 2018 12:22:00 -0000 Message-ID: <20181005122219.113447.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Richard Earnshaw To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] [Aarch64] Fix warning in _sbrk X-Act-Checkin: newlib-cygwin X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: 3878d82a2b901f064e1f24b07520f2c38937c1f5 X-Git-Newrev: 9edf0810db87603fc5c71db20ffc5b955c9adc42 X-SW-Source: 2018-q4/txt/msg00001.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9edf0810db87603fc5c71db20ffc5b955c9adc42 commit 9edf0810db87603fc5c71db20ffc5b955c9adc42 Author: Christophe Lyon Date: Mon Oct 1 19:08:40 2018 +0000 [Aarch64] Fix warning in _sbrk 2018-10-01 Christophe Lyon * 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. */