Skip to content

Commit dad7311

Browse files
committed
fix(ltoa): Use proper labs for long values
1 parent a39d1bd commit dad7311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/stdlib_noniso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ char *ltoa(long value, char *result, int base) {
4949
}
5050

5151
char *out = result;
52-
long quotient = abs(value);
52+
long quotient = labs(value);
5353

5454
do {
5555
const long tmp = quotient / base;

0 commit comments

Comments
 (0)