public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib: gdtoa: Suppress compiler warning.
@ 2023-08-04 8:57 Takashi Yano
0 siblings, 0 replies; only message in thread
From: Takashi Yano @ 2023-08-04 8:57 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ab78bd2d228027d0ac5a84bfc409444d3ce18948
commit ab78bd2d228027d0ac5a84bfc409444d3ce18948
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date: Fri Aug 4 17:42:18 2023 +0900
newlib: gdtoa: Suppress compiler warning.
Fixes: 5ac83ea47a7a ("newlib: Fix memory leak regarding gdtoa-based _ldtoa_r().")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diff:
---
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-04 8:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 8:57 [newlib-cygwin] newlib: gdtoa: Suppress compiler warning Takashi Yano
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).