mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
toolchain/ghs: Fix green hills toolchain build Vela link error
[elxr] (error #412) unresolved symbols: __builtin_signbit from libc.a(lib_dtoa_engine.o) Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
This commit is contained in:
parent
9fdd299d32
commit
2ae4ea3f99
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ int __dtoa_engine(double x, FAR struct dtoa_s *dtoa, int max_digits,
|
|||
uint8_t flags = 0;
|
||||
int i;
|
||||
|
||||
if (__builtin_signbit(x))
|
||||
if (x < 0)
|
||||
{
|
||||
flags |= DTOA_MINUS;
|
||||
x = -x;
|
||||
|
|
Loading…
Reference in a new issue