aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2023-08-04 17:42:18 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2023-08-04 17:45:59 +0900
commitab78bd2d228027d0ac5a84bfc409444d3ce18948 (patch)
tree49aa5b3ff5c0b1473184cf921663dec8f3224e5e /newlib/libc/stdlib
parent57e3e3d3abf6733567cc0f3d2a267a1dea21e9dd (diff)
downloadnewlib-ab78bd2d228027d0ac5a84bfc409444d3ce18948.zip
newlib-ab78bd2d228027d0ac5a84bfc409444d3ce18948.tar.gz
newlib-ab78bd2d228027d0ac5a84bfc409444d3ce18948.tar.bz2
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/libc/stdlib')
-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 09ba6b3..d5db270 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;
}