diff options
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/Makefile | 2 | ||||
-rw-r--r-- | nuttx/lib/lib_abs.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/lib/Makefile b/nuttx/lib/Makefile index b8897d842..a08e72156 100644 --- a/nuttx/lib/Makefile +++ b/nuttx/lib/Makefile @@ -75,7 +75,7 @@ ifeq ($(CONFIG_LIBC_FLOATINGPOINT),y) STDIO_SRCS += lib_dtoa.c endif -STDLIB_SRCS = lib_abs.c lib_rand.c lib_qsort.c +STDLIB_SRCS = lib_abs.c lib_imaxabs.c lib_labs.c lib_llabs.c lib_rand.c lib_qsort.c MATH_SRCS = lib_rint.c lib_fixedmath.c lib_b16sin.c lib_b16cos.c diff --git a/nuttx/lib/lib_abs.c b/nuttx/lib/lib_abs.c index 8ef131b87..39339b86c 100644 --- a/nuttx/lib/lib_abs.c +++ b/nuttx/lib/lib_abs.c @@ -44,11 +44,11 @@ * Global Functions ************************************************************************/ -int abs(int i) +int abs(int j) { - if (i < 0) + if (j < 0) { - i = -i; + j = -j; } - return i; + return j; } |