Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2023-08-04 11:42:18 +0300
committerTakashi Yano <takashi.yano@nifty.ne.jp>2023-08-04 11:45:59 +0300
commitab78bd2d228027d0ac5a84bfc409444d3ce18948 (patch)
tree49aa5b3ff5c0b1473184cf921663dec8f3224e5e /newlib
parent57e3e3d3abf6733567cc0f3d2a267a1dea21e9dd (diff)
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>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/stdlib/gdtoa-ldtoa.c2
1 files changed, 1 insertions, 1 deletions
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;
}