From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: newlib@sourceware.org
Cc: Takashi Yano <takashi.yano@nifty.ne.jp>
Subject: [PATCH] newlib: gdtoa: Suppress compiler warning.
Date: Fri, 4 Aug 2023 17:54:08 +0900 [thread overview]
Message-ID: <20230804085409.853-1-takashi.yano@nifty.ne.jp> (raw)
Fixes: 5ac83ea47a7a ("newlib: Fix memory leak regarding gdtoa-based _ldtoa_r().")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
---
newlib/libc/stdlib/gdtoa-ldtoa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/newlib/libc/stdlib/gdtoa-ldtoa.c b/newlib/libc/stdlib/gdtoa-ldtoa.c
index 09ba6b34b..d5db270a6 100644
--- a/newlib/libc/stdlib/gdtoa-ldtoa.c
+++ b/newlib/libc/stdlib/gdtoa-ldtoa.c
@@ -72,7 +72,7 @@ _ldtoa_r(struct _reent *ptr,
/* reentrancy addition to use mprec storage pool */
if (_REENT_MP_RESULT (ptr)) {
- freedtoa (ptr, _REENT_MP_RESULT (ptr));
+ freedtoa (ptr, (char *) _REENT_MP_RESULT (ptr));
_REENT_MP_RESULT (ptr) = 0;
}
--
2.39.0
reply other threads:[~2023-08-04 8:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230804085409.853-1-takashi.yano@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).