[PATCH] Do not compare pointer to int
Corinna Vinschen
vinschen@redhat.com
Fri Feb 9 18:21:00 GMT 2018
On Feb 9 09:42, Jaap de Wolff wrote:
> In syscalls was a pointer to int comparison
>
> Jaap de Wolff
>
> diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c
> index 5548dcfb3..51d2bedde 100644
> --- a/libgloss/arm/syscalls.c
> +++ b/libgloss/arm/syscalls.c
> @@ -718,7 +718,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. */
>
This patch has a line break problem (git format-patch/git send-email
should fix this)
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180209/f1fcf6a3/attachment.sig>
More information about the Newlib
mailing list