Unbreak integer to string conversion functions. (#5423) (#5438)

This commit is contained in:
rtrbt 2021-07-26 15:06:13 +02:00 committed by GitHub
parent 1775dd1faa
commit 3780b5c924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,7 @@
#include "stdlib_noniso.h"
#include "esp_system.h"
#if !CONFIG_DSP_ANSI && !CONFIG_DSP_OPTIMIZED
void reverse(char* begin, char* end) {
static void reverse(char* begin, char* end) {
char *is = begin;
char *ie = end - 1;
while(is < ie) {
@ -42,9 +41,6 @@ void reverse(char* begin, char* end) {
--ie;
}
}
#else
void reverse(char* begin, char* end);
#endif
char* ltoa(long value, char* result, int base) {
if(base < 2 || base > 16) {